Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceDescriptionAttribute.cs / 1 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Event, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDescriptionAttribute : DescriptionAttribute { private bool _resourceLoaded; private readonly string _descriptionResourceName; public ResourceDescriptionAttribute(string descriptionResourceName) { _descriptionResourceName = descriptionResourceName; } public override string Description { get { if (!_resourceLoaded) { _resourceLoaded = true; DescriptionValue = AtlasWeb.ResourceManager.GetString(_descriptionResourceName, AtlasWeb.Culture); } return base.Description; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextDecoration.cs
- X509CertificateTrustedIssuerElement.cs
- RemoteWebConfigurationHostStream.cs
- ReadOnlyNameValueCollection.cs
- EditingMode.cs
- InputLangChangeEvent.cs
- MouseGesture.cs
- DataGridViewColumnConverter.cs
- DataTableCollection.cs
- ResXBuildProvider.cs
- CalendarDataBindingHandler.cs
- RsaKeyIdentifierClause.cs
- DBSchemaTable.cs
- XsltArgumentList.cs
- ImmutablePropertyDescriptorGridEntry.cs
- VisualCollection.cs
- ToolboxItemFilterAttribute.cs
- ListBox.cs
- CaseStatement.cs
- UntrustedRecipientException.cs
- SqlProviderServices.cs
- InputProcessorProfilesLoader.cs
- MetadataPropertyAttribute.cs
- ScrollItemProviderWrapper.cs
- RuntimeConfigLKG.cs
- ElementMarkupObject.cs
- GcHandle.cs
- Int64Converter.cs
- Int32Converter.cs
- XmlNodeChangedEventArgs.cs
- FontDifferentiator.cs
- Debug.cs
- GradientSpreadMethodValidation.cs
- LingerOption.cs
- COM2ICategorizePropertiesHandler.cs
- PerformanceCounter.cs
- IdentifierService.cs
- WindowCollection.cs
- SignedXml.cs
- VBIdentifierNameEditor.cs
- TTSEvent.cs
- ListChunk.cs
- InvokeMethod.cs
- ForeignKeyFactory.cs
- MarkupCompiler.cs
- InputLangChangeEvent.cs
- PeerEndPoint.cs
- WhitespaceRuleLookup.cs
- TypeConstant.cs
- ElementsClipboardData.cs
- ResourceExpressionBuilder.cs
- SelectorItemAutomationPeer.cs
- SelectedGridItemChangedEvent.cs
- EventLogHandle.cs
- TreeNodeSelectionProcessor.cs
- XmlElementAttributes.cs
- Pair.cs
- CounterCreationDataConverter.cs
- BaseProcessor.cs
- SettingsPropertyWrongTypeException.cs
- GeometryDrawing.cs
- Pen.cs
- VersionedStreamOwner.cs
- QuadraticBezierSegment.cs
- RootBrowserWindowAutomationPeer.cs
- LookupBindingPropertiesAttribute.cs
- ScriptResourceHandler.cs
- WebPartExportVerb.cs
- SafePEFileHandle.cs
- ServiceHostFactory.cs
- MimeMapping.cs
- CodeActivityMetadata.cs
- BitmapFrameEncode.cs
- InsufficientMemoryException.cs
- ExpressionEditor.cs
- ComPlusTypeLoader.cs
- HttpSessionStateBase.cs
- FontFamilyConverter.cs
- WebScriptServiceHostFactory.cs
- TextReader.cs
- ProgressBar.cs
- DataGridLinkButton.cs
- Style.cs
- GetReadStreamResult.cs
- SoapClientProtocol.cs
- XmlAutoDetectWriter.cs
- DataGridViewCellValueEventArgs.cs
- WebBrowserNavigatingEventHandler.cs
- AQNBuilder.cs
- EventPrivateKey.cs
- ChameleonKey.cs
- _WebProxyDataBuilder.cs
- FixUp.cs
- CodeStatement.cs
- WindowsButton.cs
- Interfaces.cs
- HierarchicalDataSourceControl.cs
- TypographyProperties.cs
- TextRunTypographyProperties.cs
- SafeFileMapViewHandle.cs