Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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.
//
//-----------------------------------------------------------------------------
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
- XmlObjectSerializerReadContextComplexJson.cs
- PresentationTraceSources.cs
- UpWmlMobileTextWriter.cs
- PropertyRecord.cs
- DataListCommandEventArgs.cs
- WindowsPrincipal.cs
- UniqueIdentifierService.cs
- XmlnsCache.cs
- GlyphRunDrawing.cs
- CollectionView.cs
- HttpHandlersSection.cs
- RouteValueDictionary.cs
- XhtmlMobileTextWriter.cs
- SyndicationDeserializer.cs
- HtmlToClrEventProxy.cs
- EntityDataSourceWrapperCollection.cs
- ArrayWithOffset.cs
- RecognizedPhrase.cs
- NamedPipeActivation.cs
- CultureInfoConverter.cs
- XmlChoiceIdentifierAttribute.cs
- AsyncOperationManager.cs
- TransactionFlowElement.cs
- LOSFormatter.cs
- TableCell.cs
- AttachmentCollection.cs
- __Filters.cs
- EntitySet.cs
- DecoderNLS.cs
- DesignerSerializerAttribute.cs
- ExtenderHelpers.cs
- FixedElement.cs
- Sql8ExpressionRewriter.cs
- MatchNoneMessageFilter.cs
- XPathNavigator.cs
- XNodeSchemaApplier.cs
- FrameSecurityDescriptor.cs
- BufferCache.cs
- Mapping.cs
- InternalBufferManager.cs
- ClientTargetSection.cs
- BinaryObjectWriter.cs
- ButtonBase.cs
- InvariantComparer.cs
- DesignerActionUIStateChangeEventArgs.cs
- HttpModuleAction.cs
- HtmlTableRow.cs
- InheritanceAttribute.cs
- ServiceHostingEnvironmentSection.cs
- CodeObject.cs
- MetricEntry.cs
- ManualResetEventSlim.cs
- XmlnsCompatibleWithAttribute.cs
- AppPool.cs
- FontFamily.cs
- FilteredReadOnlyMetadataCollection.cs
- RecognizerInfo.cs
- SystemDiagnosticsSection.cs
- CroppedBitmap.cs
- MetadataArtifactLoaderResource.cs
- LazyTextWriterCreator.cs
- InlineObject.cs
- SubMenuStyle.cs
- TreeView.cs
- QilChoice.cs
- CatalogPartCollection.cs
- userdatakeys.cs
- DBParameter.cs
- StreamResourceInfo.cs
- OperatingSystem.cs
- DebugView.cs
- MultiByteCodec.cs
- HttpHandlersSection.cs
- TagPrefixAttribute.cs
- ValueExpressions.cs
- DataGridViewSelectedCellCollection.cs
- HeaderUtility.cs
- LayoutUtils.cs
- FixedSchema.cs
- XmlConverter.cs
- SettingsPropertyNotFoundException.cs
- ApplicationGesture.cs
- ResourcePermissionBaseEntry.cs
- SrgsElement.cs
- XDRSchema.cs
- DataBindingExpressionBuilder.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AddInActivator.cs
- ConfigurationSchemaErrors.cs
- CardSpaceSelector.cs
- StylusDownEventArgs.cs
- CallSiteHelpers.cs
- EntitySqlQueryCacheEntry.cs
- InfoCardClaim.cs
- MethodAccessException.cs
- StringAttributeCollection.cs
- XmlSchemaSimpleType.cs
- EntityType.cs
- SimpleExpression.cs
- DataViewManagerListItemTypeDescriptor.cs