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
- HttpApplicationStateBase.cs
- MouseGesture.cs
- AutomationElementCollection.cs
- TextFragmentEngine.cs
- ReflectionPermission.cs
- SafeFileMappingHandle.cs
- coordinator.cs
- DataControlLinkButton.cs
- CodeBlockBuilder.cs
- ProjectionRewriter.cs
- UnhandledExceptionEventArgs.cs
- PathFigureCollectionConverter.cs
- IList.cs
- EntityStoreSchemaGenerator.cs
- ZipPackage.cs
- ListViewCancelEventArgs.cs
- Keywords.cs
- ZipIOExtraField.cs
- FolderLevelBuildProviderCollection.cs
- Table.cs
- Comparer.cs
- UInt32Storage.cs
- XmlTextAttribute.cs
- Vector3DAnimation.cs
- OutputWindow.cs
- AutomationEvent.cs
- ValidatedControlConverter.cs
- xmlfixedPageInfo.cs
- RunInstallerAttribute.cs
- Tag.cs
- Button.cs
- PersistencePipeline.cs
- TransactionChannelFactory.cs
- StaticFileHandler.cs
- PlaceHolder.cs
- ActivityExecutor.cs
- WebEvents.cs
- PageRequestManager.cs
- BaseDataListPage.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlSerializationGeneratedCode.cs
- TableColumn.cs
- RequestChannelBinder.cs
- DuplexSecurityProtocolFactory.cs
- MenuItemStyleCollection.cs
- WorkflowInstance.cs
- StrongNamePublicKeyBlob.cs
- TextEncodedRawTextWriter.cs
- TextDpi.cs
- Soap.cs
- ZipIOCentralDirectoryBlock.cs
- MaskDesignerDialog.cs
- ScriptControlDescriptor.cs
- KeyedCollection.cs
- CodeCommentStatement.cs
- ConversionValidationRule.cs
- RadioButtonAutomationPeer.cs
- CellParaClient.cs
- HttpInputStream.cs
- MethodImplAttribute.cs
- ComponentSerializationService.cs
- CompiledXpathExpr.cs
- UnmanagedMemoryStream.cs
- ConfigurationManager.cs
- RectangleConverter.cs
- CustomAttributeFormatException.cs
- ScriptManager.cs
- XmlLinkedNode.cs
- DrawingCollection.cs
- RegexCompilationInfo.cs
- KeyPullup.cs
- PanelStyle.cs
- Form.cs
- ImageDrawing.cs
- ContextMarshalException.cs
- TextRangeEdit.cs
- WindowsIPAddress.cs
- HTTPNotFoundHandler.cs
- DurableMessageDispatchInspector.cs
- HtmlAnchor.cs
- XmlCollation.cs
- SqlFacetAttribute.cs
- TagPrefixInfo.cs
- BasicExpandProvider.cs
- ClientTargetCollection.cs
- GridSplitter.cs
- ComponentCollection.cs
- LambdaCompiler.cs
- AttributeTableBuilder.cs
- COM2ColorConverter.cs
- RoutedEventConverter.cs
- FilterRepeater.cs
- WindowsFormsSectionHandler.cs
- ObjectHandle.cs
- SecurityDescriptor.cs
- FixedSOMLineCollection.cs
- ToolStripDropTargetManager.cs
- RemoteWebConfigurationHost.cs
- SynchronousChannelMergeEnumerator.cs
- QilScopedVisitor.cs