Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceDisplayNameAttribute.cs / 1 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyGridDesigner.cs
- ToolBarTray.cs
- RelationshipEntry.cs
- MSHTMLHost.cs
- XmlSerializerOperationBehavior.cs
- SqlBuilder.cs
- hresults.cs
- FormViewCommandEventArgs.cs
- MetadataPropertyCollection.cs
- BooleanStorage.cs
- BitArray.cs
- SmtpNtlmAuthenticationModule.cs
- ChildrenQuery.cs
- TableItemStyle.cs
- ToolStripMenuItemCodeDomSerializer.cs
- IDReferencePropertyAttribute.cs
- DataPagerFieldCollection.cs
- DnsPermission.cs
- ConfigurationValue.cs
- SystemSounds.cs
- ContextStaticAttribute.cs
- UnmanagedHandle.cs
- webbrowsersite.cs
- ProgressChangedEventArgs.cs
- Assert.cs
- BuildResult.cs
- WebDescriptionAttribute.cs
- ProcessHostFactoryHelper.cs
- StaticContext.cs
- TextParagraphView.cs
- SelectionService.cs
- GatewayIPAddressInformationCollection.cs
- SiteMapNode.cs
- FunctionMappingTranslator.cs
- ListViewItem.cs
- TraceListener.cs
- TypedDataSetSchemaImporterExtension.cs
- CompModSwitches.cs
- SqlUserDefinedTypeAttribute.cs
- PauseStoryboard.cs
- ChannelEndpointElementCollection.cs
- NavigationProgressEventArgs.cs
- ChoiceConverter.cs
- SocketPermission.cs
- DataSourceXmlClassAttribute.cs
- URI.cs
- ProviderCommandInfoUtils.cs
- _TransmitFileOverlappedAsyncResult.cs
- SafeIUnknown.cs
- PaginationProgressEventArgs.cs
- AutomationPatternInfo.cs
- XmlName.cs
- ToolboxComponentsCreatedEventArgs.cs
- UICuesEvent.cs
- StringUtil.cs
- autovalidator.cs
- RemoteCryptoSignHashRequest.cs
- SubstitutionResponseElement.cs
- XmlUtf8RawTextWriter.cs
- ActivityBuilderHelper.cs
- XhtmlBasicValidatorAdapter.cs
- HttpRequestWrapper.cs
- AdornerDecorator.cs
- HttpSessionStateWrapper.cs
- EventWaitHandle.cs
- PlainXmlDeserializer.cs
- PermissionRequestEvidence.cs
- PngBitmapEncoder.cs
- _NestedMultipleAsyncResult.cs
- RawAppCommandInputReport.cs
- Attributes.cs
- ByteAnimation.cs
- WebResourceUtil.cs
- GenericRootAutomationPeer.cs
- ResourceType.cs
- CaretElement.cs
- SetIndexBinder.cs
- TimeSpanConverter.cs
- DataSourceView.cs
- DefaultBinder.cs
- BitmapEffectGroup.cs
- BaseProcessProtocolHandler.cs
- DataError.cs
- ETagAttribute.cs
- Item.cs
- AsyncContentLoadedEventArgs.cs
- CheckBoxStandardAdapter.cs
- NavigationProgressEventArgs.cs
- WindowsTreeView.cs
- Application.cs
- CustomLineCap.cs
- SqlCharStream.cs
- SerializationFieldInfo.cs
- WebConfigurationManager.cs
- Image.cs
- OpCellTreeNode.cs
- ComboBoxRenderer.cs
- ExpressionsCollectionEditor.cs
- BrowserTree.cs
- ProxyGenerator.cs