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
- QueryStringParameter.cs
- RelationshipDetailsRow.cs
- MemberPath.cs
- SchemaComplexType.cs
- SystemIPGlobalStatistics.cs
- ResourceProviderFactory.cs
- ControlBindingsCollection.cs
- Int16Converter.cs
- DictionarySectionHandler.cs
- ChangePasswordDesigner.cs
- ComNativeDescriptor.cs
- BamlBinaryReader.cs
- EntityDataSourceChangingEventArgs.cs
- COM2ComponentEditor.cs
- ConfigurationManagerInternalFactory.cs
- SecurityContextTokenValidationException.cs
- OleDbConnectionInternal.cs
- WebPartDisplayMode.cs
- WebPartHeaderCloseVerb.cs
- DescendentsWalkerBase.cs
- IdentityModelStringsVersion1.cs
- ComplexLine.cs
- ClientSettings.cs
- PnrpPermission.cs
- Overlapped.cs
- FormViewInsertEventArgs.cs
- Page.cs
- TypeValidationEventArgs.cs
- MaxMessageSizeStream.cs
- ObjectPersistData.cs
- MediaSystem.cs
- DbResourceAllocator.cs
- Input.cs
- ConfigurationStrings.cs
- BasicHttpBindingCollectionElement.cs
- ControlParameter.cs
- COM2FontConverter.cs
- StructuredTypeInfo.cs
- FontEmbeddingManager.cs
- Partitioner.cs
- Int32.cs
- MessageHeaderDescription.cs
- ButtonFieldBase.cs
- PluggableProtocol.cs
- SqlDataSourceCache.cs
- PlatformNotSupportedException.cs
- Descriptor.cs
- LiteralSubsegment.cs
- ClientCultureInfo.cs
- SerializationFieldInfo.cs
- GridViewAutomationPeer.cs
- ThreadSafeList.cs
- HtmlInputSubmit.cs
- FormViewUpdateEventArgs.cs
- ProcessHost.cs
- NonVisualControlAttribute.cs
- WebBrowserContainer.cs
- DesignTimeVisibleAttribute.cs
- IdentifierService.cs
- HtmlWindow.cs
- baseshape.cs
- Compress.cs
- BinaryObjectReader.cs
- SchemaNotation.cs
- VariantWrapper.cs
- CodeDirectionExpression.cs
- CompositeFontInfo.cs
- Debug.cs
- DiagnosticsConfiguration.cs
- SerializationInfoEnumerator.cs
- RealProxy.cs
- ToolStripManager.cs
- MarginCollapsingState.cs
- KeyInfo.cs
- IISMapPath.cs
- UnsafeNativeMethodsCLR.cs
- QilName.cs
- GenericTextProperties.cs
- IncrementalCompileAnalyzer.cs
- WebPartConnectionCollection.cs
- AQNBuilder.cs
- XamlClipboardData.cs
- ListBoxAutomationPeer.cs
- DataBoundControlHelper.cs
- ControlCollection.cs
- MenuItem.cs
- BindingOperations.cs
- DataGridViewAutoSizeModeEventArgs.cs
- EmissiveMaterial.cs
- ClientScriptManager.cs
- ScriptingProfileServiceSection.cs
- GcSettings.cs
- X509ThumbprintKeyIdentifierClause.cs
- JavaScriptSerializer.cs
- IncrementalHitTester.cs
- SecurityTokenValidationException.cs
- CompModSwitches.cs
- WebServiceErrorEvent.cs
- MetadataCache.cs
- documentsequencetextview.cs