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
- HashCodeCombiner.cs
- WhitespaceRule.cs
- XPathScanner.cs
- ContentElement.cs
- CngProvider.cs
- LedgerEntry.cs
- XamlBrushSerializer.cs
- CalendarDateRangeChangingEventArgs.cs
- UnsafeNativeMethodsMilCoreApi.cs
- WebPartDisplayModeEventArgs.cs
- WebEncodingValidatorAttribute.cs
- GiveFeedbackEvent.cs
- DataRelationCollection.cs
- Form.cs
- DesignerValidatorAdapter.cs
- ScrollItemProviderWrapper.cs
- StrongName.cs
- UpdatePanel.cs
- XmlObjectSerializer.cs
- LockedHandleGlyph.cs
- HttpWrapper.cs
- DataGridParentRows.cs
- StylusButton.cs
- HttpCacheVary.cs
- DiffuseMaterial.cs
- DetailsViewDeleteEventArgs.cs
- UIElement3D.cs
- MulticastDelegate.cs
- ResponseStream.cs
- DiscreteKeyFrames.cs
- ByteKeyFrameCollection.cs
- FloatUtil.cs
- EventManager.cs
- PrintControllerWithStatusDialog.cs
- ArrangedElement.cs
- TabPanel.cs
- IndexedEnumerable.cs
- _ChunkParse.cs
- TextTreeTextNode.cs
- RemotingConfiguration.cs
- SelectionWordBreaker.cs
- UserPersonalizationStateInfo.cs
- Compilation.cs
- HttpsTransportBindingElement.cs
- ClientSideProviderDescription.cs
- EventRecord.cs
- ToolBarButtonDesigner.cs
- Propagator.cs
- HttpHandlerActionCollection.cs
- UdpDiscoveryEndpointElement.cs
- _NetRes.cs
- RadioButtonFlatAdapter.cs
- tibetanshape.cs
- XmlFormatExtensionPointAttribute.cs
- QueryReaderSettings.cs
- ShutDownListener.cs
- EnumerableRowCollection.cs
- SyntaxCheck.cs
- ProcessModelInfo.cs
- ObjectList.cs
- CustomErrorsSectionWrapper.cs
- TextUtf8RawTextWriter.cs
- LayoutManager.cs
- GridLengthConverter.cs
- SymbolUsageManager.cs
- WeakReferenceKey.cs
- securitycriticaldataClass.cs
- XsdDuration.cs
- shaperfactoryquerycacheentry.cs
- HttpProfileGroupBase.cs
- TemporaryBitmapFile.cs
- SQLInt16.cs
- AnnouncementInnerClient11.cs
- ClientRuntimeConfig.cs
- _Win32.cs
- UIHelper.cs
- PrimitiveList.cs
- ReadWriteSpinLock.cs
- ClientBuildManager.cs
- ResolveNameEventArgs.cs
- XPathNavigator.cs
- XmlArrayItemAttribute.cs
- Policy.cs
- CategoryAttribute.cs
- MethodImplAttribute.cs
- DataRecordInfo.cs
- DiscoveryMessageSequence11.cs
- DictionarySurrogate.cs
- OleServicesContext.cs
- IIS7UserPrincipal.cs
- OlePropertyStructs.cs
- _ConnectOverlappedAsyncResult.cs
- Enum.cs
- PrincipalPermission.cs
- DocumentSequenceHighlightLayer.cs
- Hashtable.cs
- FilterElement.cs
- SqlVersion.cs
- NamespaceQuery.cs
- DbConnectionHelper.cs