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
- WindowVisualStateTracker.cs
- XmlEnumAttribute.cs
- ImageSource.cs
- CatalogZoneBase.cs
- XPathSingletonIterator.cs
- SchemaNamespaceManager.cs
- MeshGeometry3D.cs
- InvalidDataContractException.cs
- HttpServerVarsCollection.cs
- FontFamily.cs
- AssociationTypeEmitter.cs
- TypeUnloadedException.cs
- SoapIgnoreAttribute.cs
- RequestNavigateEventArgs.cs
- NamespaceDisplayAutomationPeer.cs
- _TimerThread.cs
- CodeMemberMethod.cs
- RepeatButtonAutomationPeer.cs
- ObjectListFieldCollection.cs
- CatalogPartChrome.cs
- NameValueCollection.cs
- RuntimeHandles.cs
- ProvideValueServiceProvider.cs
- WindowsListViewGroupHelper.cs
- ComponentTray.cs
- SerializationInfoEnumerator.cs
- PerfCounterSection.cs
- TrackingProfileManager.cs
- CodeSubDirectory.cs
- WSTransactionSection.cs
- HtmlTableRowCollection.cs
- ImportCatalogPart.cs
- TargetParameterCountException.cs
- OrderedHashRepartitionStream.cs
- Pkcs7Signer.cs
- AuthorizationSection.cs
- ImageCodecInfoPrivate.cs
- MonitoringDescriptionAttribute.cs
- GenericRootAutomationPeer.cs
- DBPropSet.cs
- RelativeSource.cs
- WebBaseEventKeyComparer.cs
- HijriCalendar.cs
- PathFigureCollectionValueSerializer.cs
- MissingManifestResourceException.cs
- Point4DValueSerializer.cs
- ArrayExtension.cs
- PeerPresenceInfo.cs
- Win32Exception.cs
- ICspAsymmetricAlgorithm.cs
- LineMetrics.cs
- AnonymousIdentificationModule.cs
- ChannelParameterCollection.cs
- MatrixAnimationUsingKeyFrames.cs
- AnnotationHighlightLayer.cs
- MediaTimeline.cs
- DateTimeStorage.cs
- Screen.cs
- DesignerView.xaml.cs
- ObjectSpanRewriter.cs
- TransactionContext.cs
- SystemFonts.cs
- DataGridViewCellPaintingEventArgs.cs
- EventLogPermissionEntryCollection.cs
- SortableBindingList.cs
- ProvidersHelper.cs
- XmlSchemaSequence.cs
- _ProxyRegBlob.cs
- Item.cs
- XmlObjectSerializerReadContext.cs
- TextDocumentView.cs
- EventListener.cs
- SystemException.cs
- PartialTrustValidationBehavior.cs
- WebPartRestoreVerb.cs
- RequestCacheEntry.cs
- SessionParameter.cs
- RightsManagementInformation.cs
- ErrorWebPart.cs
- ComplexObject.cs
- DBDataPermissionAttribute.cs
- JsonServiceDocumentSerializer.cs
- ClrProviderManifest.cs
- PackagePart.cs
- AttachedAnnotationChangedEventArgs.cs
- DataGridViewCellEventArgs.cs
- CacheSection.cs
- DiagnosticEventProvider.cs
- UIElementAutomationPeer.cs
- AssemblyHelper.cs
- SynchronizationValidator.cs
- ListBox.cs
- PerfProviderCollection.cs
- CodeConstructor.cs
- ContextActivityUtils.cs
- PrintDialogException.cs
- ToolStripItemImageRenderEventArgs.cs
- NullReferenceException.cs
- SmiRecordBuffer.cs
- PrintingPermissionAttribute.cs