Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ResourceDisplayNameAttribute.cs / 1305376 / ResourceDisplayNameAttribute.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, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDisplayNameAttribute : DisplayNameAttribute { private bool _resourceLoaded; private readonly string _displayNameResourceName; public ResourceDisplayNameAttribute(string displayNameResourceName) { _displayNameResourceName = displayNameResourceName; } public override string DisplayName { get { if (!_resourceLoaded) { _resourceLoaded = true; DisplayNameValue = AtlasWeb.ResourceManager.GetString(_displayNameResourceName, AtlasWeb.Culture); } return base.DisplayName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InteropExecutor.cs
- XmlChoiceIdentifierAttribute.cs
- CodeTypeReference.cs
- CodeArrayCreateExpression.cs
- DataRelationCollection.cs
- PropertyMapper.cs
- WebPermission.cs
- DbgCompiler.cs
- XmlSignatureProperties.cs
- TextElementCollection.cs
- DocumentPageViewAutomationPeer.cs
- RegexTree.cs
- PeerName.cs
- DesignerHost.cs
- UnsafeNetInfoNativeMethods.cs
- TreeNodeBinding.cs
- DocumentViewer.cs
- RadioButtonDesigner.cs
- DocumentPageView.cs
- InputMethodStateChangeEventArgs.cs
- AssertFilter.cs
- ErasingStroke.cs
- ContentType.cs
- WinCategoryAttribute.cs
- XmlSchemaGroup.cs
- XmlSchemaValidator.cs
- Translator.cs
- KeyboardNavigation.cs
- FileDialogCustomPlace.cs
- WindowsClaimSet.cs
- WindowPatternIdentifiers.cs
- diagnosticsswitches.cs
- PageWrapper.cs
- InvokeBase.cs
- ReadOnlyCollection.cs
- QueryMath.cs
- InfoCardListRequest.cs
- AddInControllerImpl.cs
- WsdlExporter.cs
- TableLayoutStyleCollection.cs
- StylusPointProperty.cs
- WebServiceMethodData.cs
- TypeHelpers.cs
- StylusPointPropertyInfoDefaults.cs
- SubMenuStyleCollection.cs
- FloaterBaseParaClient.cs
- TemplateNameScope.cs
- SingletonConnectionReader.cs
- PlanCompiler.cs
- DesignerSelectionListAdapter.cs
- ObjectDataSourceStatusEventArgs.cs
- StateDesigner.Helpers.cs
- SinglePageViewer.cs
- ShaderEffect.cs
- NominalTypeEliminator.cs
- ContentOperations.cs
- XmlImplementation.cs
- _NestedMultipleAsyncResult.cs
- ValidationEventArgs.cs
- HtmlListAdapter.cs
- XmlCharacterData.cs
- AnimationException.cs
- ResourceProviderFactory.cs
- Soap.cs
- ChangePassword.cs
- HostProtectionPermission.cs
- SqlCachedBuffer.cs
- SafeFindHandle.cs
- ByteAnimationUsingKeyFrames.cs
- DbInsertCommandTree.cs
- ControlCachePolicy.cs
- ButtonAutomationPeer.cs
- SizeFConverter.cs
- HyperLinkField.cs
- ResourceContainer.cs
- OletxEnlistment.cs
- CryptographicAttribute.cs
- ObjectListFieldCollection.cs
- TopClause.cs
- DeriveBytes.cs
- QueryAccessibilityHelpEvent.cs
- CqlLexer.cs
- AssemblyBuilder.cs
- ChannelPoolSettingsElement.cs
- StringFormat.cs
- MergablePropertyAttribute.cs
- ColorDialog.cs
- StreamInfo.cs
- DataObjectAttribute.cs
- DirectoryRootQuery.cs
- KeyboardEventArgs.cs
- HGlobalSafeHandle.cs
- CorrelationScope.cs
- DecimalFormatter.cs
- PropertyDescriptorCollection.cs
- DecimalConstantAttribute.cs
- bidPrivateBase.cs
- XmlDomTextWriter.cs
- _SslState.cs
- AttributeProviderAttribute.cs