Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- SponsorHelper.cs
- ChtmlCommandAdapter.cs
- EnumerableCollectionView.cs
- SecurityUtils.cs
- XPathItem.cs
- SafeBitVector32.cs
- DataGridViewElement.cs
- NamespaceEmitter.cs
- AutoScrollExpandMessageFilter.cs
- MSAAWinEventWrap.cs
- GridViewUpdatedEventArgs.cs
- CannotUnloadAppDomainException.cs
- CharacterBufferReference.cs
- NumberFormatter.cs
- HierarchicalDataBoundControlAdapter.cs
- HttpModuleCollection.cs
- MouseCaptureWithinProperty.cs
- LinkLabel.cs
- Attributes.cs
- DataGridTable.cs
- XhtmlBasicPhoneCallAdapter.cs
- TypeConverterHelper.cs
- StringStorage.cs
- ForceCopyBuildProvider.cs
- SetIndexBinder.cs
- SqlBulkCopyColumnMapping.cs
- InvokeHandlers.cs
- FontSizeConverter.cs
- KerberosRequestorSecurityToken.cs
- BinaryObjectReader.cs
- OleAutBinder.cs
- CqlQuery.cs
- DynamicDataManager.cs
- SiteMapNodeCollection.cs
- OutputCacheProfileCollection.cs
- SimpleType.cs
- ComponentCollection.cs
- StaticFileHandler.cs
- SpeechAudioFormatInfo.cs
- HTMLTextWriter.cs
- UriTemplateClientFormatter.cs
- Line.cs
- RelAssertionDirectKeyIdentifierClause.cs
- NativeMethods.cs
- X509SecurityTokenProvider.cs
- TdsValueSetter.cs
- HttpClientCredentialType.cs
- XPathScanner.cs
- ValidateNames.cs
- SimpleHandlerBuildProvider.cs
- ArglessEventHandlerProxy.cs
- base64Transforms.cs
- LinkedResource.cs
- DictionarySectionHandler.cs
- MenuItemBindingCollection.cs
- XsltSettings.cs
- JsonFaultDetail.cs
- BindingExpressionBase.cs
- ActivityScheduledRecord.cs
- MediaTimeline.cs
- LostFocusEventManager.cs
- Events.cs
- ObjectNotFoundException.cs
- HttpListenerContext.cs
- PrintEvent.cs
- LeaseManager.cs
- X509Utils.cs
- HandlerFactoryCache.cs
- RoleManagerModule.cs
- Parameter.cs
- HtmlTextArea.cs
- PrintSystemException.cs
- ThemeDictionaryExtension.cs
- SocketException.cs
- ButtonPopupAdapter.cs
- SocketPermission.cs
- PenContext.cs
- SmtpDigestAuthenticationModule.cs
- RsaSecurityToken.cs
- SqlProfileProvider.cs
- ReadOnlyCollectionBase.cs
- MailMessageEventArgs.cs
- UpdatePanelTriggerCollection.cs
- GuidelineCollection.cs
- VarRemapper.cs
- PageStatePersister.cs
- Context.cs
- QuaternionIndependentAnimationStorage.cs
- FontUnitConverter.cs
- FormViewCommandEventArgs.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SecuritySessionSecurityTokenProvider.cs
- HwndSource.cs
- CodeCompiler.cs
- connectionpool.cs
- ChannelManager.cs
- PrimarySelectionAdorner.cs
- XmlIlGenerator.cs
- DoubleAnimationBase.cs
- Win32MouseDevice.cs