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
- CollectionViewGroupInternal.cs
- Color.cs
- VisualBasicHelper.cs
- AssertFilter.cs
- CategoryEditor.cs
- MultiAsyncResult.cs
- OutputCacheProfile.cs
- FloatUtil.cs
- WebPartAuthorizationEventArgs.cs
- TileModeValidation.cs
- BitmapPalette.cs
- _AutoWebProxyScriptHelper.cs
- PreviewPrintController.cs
- StorageFunctionMapping.cs
- MobileContainerDesigner.cs
- ServicePerformanceCounters.cs
- ClusterUtils.cs
- SequentialWorkflowRootDesigner.cs
- CssStyleCollection.cs
- DataGridAddNewRow.cs
- SafeLocalMemHandle.cs
- SerializationEventsCache.cs
- PlatformCulture.cs
- DefaultTraceListener.cs
- X509ClientCertificateCredentialsElement.cs
- HttpHandlersSection.cs
- WorkflowDurableInstance.cs
- StringBuilder.cs
- OpenTypeLayout.cs
- EventMappingSettings.cs
- Random.cs
- IResourceProvider.cs
- SystemColors.cs
- VirtualPath.cs
- DataServiceEntityAttribute.cs
- RelationshipFixer.cs
- SignedPkcs7.cs
- DocumentViewerConstants.cs
- Attributes.cs
- DynamicQueryableWrapper.cs
- DockPattern.cs
- OracleDataReader.cs
- SymbolDocumentGenerator.cs
- PhysicalOps.cs
- ImageIndexConverter.cs
- LinearKeyFrames.cs
- PhysicalFontFamily.cs
- CrossAppDomainChannel.cs
- XPathDocumentNavigator.cs
- BooleanFunctions.cs
- IgnoreFileBuildProvider.cs
- VerificationAttribute.cs
- TextEffectResolver.cs
- SplitterEvent.cs
- GestureRecognizer.cs
- CacheVirtualItemsEvent.cs
- FileUpload.cs
- DocumentCollection.cs
- returneventsaver.cs
- Int64Converter.cs
- GlyphCache.cs
- CornerRadius.cs
- CompoundFileReference.cs
- NGCPageContentSerializerAsync.cs
- XmlMemberMapping.cs
- SiteMap.cs
- DataGridBoolColumn.cs
- GAC.cs
- DataControlFieldCollection.cs
- MenuStrip.cs
- TypeBinaryExpression.cs
- EncryptedPackageFilter.cs
- InfoCardTrace.cs
- BinaryCommonClasses.cs
- x509store.cs
- PagesSection.cs
- GridViewRowPresenter.cs
- BindingGroup.cs
- ParseHttpDate.cs
- BinaryMethodMessage.cs
- InternalDispatchObject.cs
- BaseTemplateCodeDomTreeGenerator.cs
- VoiceObjectToken.cs
- CopyNamespacesAction.cs
- NativeStructs.cs
- ScriptResourceAttribute.cs
- ComponentCollection.cs
- SchemaTypeEmitter.cs
- StyleBamlTreeBuilder.cs
- Button.cs
- TimelineClockCollection.cs
- UnmanagedMarshal.cs
- AccessDataSourceView.cs
- XmlAnyElementAttributes.cs
- Attribute.cs
- DescendantQuery.cs
- handlecollector.cs
- DbProviderFactory.cs
- SubMenuStyleCollection.cs
- ToolStripProfessionalLowResolutionRenderer.cs