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
- CachedPathData.cs
- DbConnectionPoolIdentity.cs
- SaveFileDialog.cs
- Vector3DKeyFrameCollection.cs
- ComPlusTypeLoader.cs
- DbDataReader.cs
- GlobalAllocSafeHandle.cs
- FileUpload.cs
- CryptoStream.cs
- CustomErrorsSection.cs
- ImageFormatConverter.cs
- ServiceOperation.cs
- HttpListenerResponse.cs
- ReflectEventDescriptor.cs
- DataControlImageButton.cs
- TableLayout.cs
- CommentEmitter.cs
- WorkflowControlEndpoint.cs
- COSERVERINFO.cs
- HostingEnvironmentWrapper.cs
- OptimalTextSource.cs
- GradientStop.cs
- Attributes.cs
- TextModifier.cs
- EventTrigger.cs
- HistoryEventArgs.cs
- DateTimeConstantAttribute.cs
- IBuiltInEvidence.cs
- ActivationServices.cs
- BoolLiteral.cs
- CompModHelpers.cs
- ListItem.cs
- StringUtil.cs
- ScriptDescriptor.cs
- WebBrowserNavigatingEventHandler.cs
- TreeNodeCollection.cs
- DataPagerFieldCommandEventArgs.cs
- XslVisitor.cs
- AsymmetricKeyExchangeDeformatter.cs
- ClientSideQueueItem.cs
- EndEvent.cs
- IDictionary.cs
- PointAnimationBase.cs
- DataSourceComponent.cs
- XmlDataSourceNodeDescriptor.cs
- Scheduler.cs
- AsyncStreamReader.cs
- DesignDataSource.cs
- CodePageUtils.cs
- Graph.cs
- GraphicsPathIterator.cs
- ListMarkerLine.cs
- HtmlTable.cs
- Rectangle.cs
- PropertyTabAttribute.cs
- ObjectQueryState.cs
- XamlReaderHelper.cs
- AppLevelCompilationSectionCache.cs
- ElasticEase.cs
- AliasExpr.cs
- SoapFault.cs
- RightsManagementEncryptionTransform.cs
- TextPenaltyModule.cs
- RedistVersionInfo.cs
- TextBoxAutomationPeer.cs
- CrossContextChannel.cs
- VisemeEventArgs.cs
- DBSchemaTable.cs
- InfoCardKeyedHashAlgorithm.cs
- InputGestureCollection.cs
- CopyAction.cs
- Hyperlink.cs
- ListViewDataItem.cs
- AttributeTable.cs
- MutexSecurity.cs
- TypeInfo.cs
- SignatureResourcePool.cs
- ExpressionEditorAttribute.cs
- ProxyWebPart.cs
- XmlNavigatorStack.cs
- DWriteFactory.cs
- PointCollection.cs
- SuppressMessageAttribute.cs
- GenericsInstances.cs
- AssociationSet.cs
- TableItemPatternIdentifiers.cs
- XmlSignatureProperties.cs
- MailWebEventProvider.cs
- ProcessHostFactoryHelper.cs
- FragmentQuery.cs
- Size.cs
- XmlRawWriter.cs
- ClientSettingsStore.cs
- __TransparentProxy.cs
- MILUtilities.cs
- ReadOnlyDataSourceView.cs
- FormViewInsertEventArgs.cs
- DropSource.cs
- XhtmlConformanceSection.cs
- DataGridViewEditingControlShowingEventArgs.cs