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
- SudsWriter.cs
- ExtentKey.cs
- DatePickerTextBox.cs
- StorageRoot.cs
- ComboBoxAutomationPeer.cs
- ParameterToken.cs
- FunctionNode.cs
- DrawTreeNodeEventArgs.cs
- ExtensionFile.cs
- ParentQuery.cs
- SchemaImporter.cs
- ControlPaint.cs
- ElementsClipboardData.cs
- AnnotationComponentManager.cs
- StateMachineDesignerPaint.cs
- Roles.cs
- SpeechSynthesizer.cs
- FilteredAttributeCollection.cs
- TextAutomationPeer.cs
- ProtocolException.cs
- DictionarySectionHandler.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- Light.cs
- ErrorEventArgs.cs
- ConnectionPoint.cs
- CharEnumerator.cs
- ClientSettingsStore.cs
- AsyncContentLoadedEventArgs.cs
- Column.cs
- XPathArrayIterator.cs
- KeySpline.cs
- ContainerParaClient.cs
- ExpressionEditor.cs
- ContextConfiguration.cs
- WebBrowser.cs
- Tokenizer.cs
- DelayedRegex.cs
- DoubleAnimationBase.cs
- EncodingInfo.cs
- Command.cs
- CngAlgorithmGroup.cs
- HttpModuleActionCollection.cs
- DesigntimeLicenseContextSerializer.cs
- BooleanProjectedSlot.cs
- RepeaterItemEventArgs.cs
- TypeDescriptionProviderAttribute.cs
- JulianCalendar.cs
- PageRouteHandler.cs
- JapaneseCalendar.cs
- SrgsElementFactoryCompiler.cs
- ApplicationServiceManager.cs
- JobCollate.cs
- XmlUTF8TextReader.cs
- UnmanagedMemoryStreamWrapper.cs
- LineServicesRun.cs
- HtmlInputImage.cs
- ScriptingSectionGroup.cs
- FlatButtonAppearance.cs
- SelfIssuedAuthProofToken.cs
- PageContentCollection.cs
- TypeUnloadedException.cs
- XmlSchemaSimpleContentExtension.cs
- XPathChildIterator.cs
- ImageAnimator.cs
- HttpResponseWrapper.cs
- DesignerVerbCollection.cs
- StylusCaptureWithinProperty.cs
- MsmqHostedTransportConfiguration.cs
- DeploymentSection.cs
- TypeSystemProvider.cs
- SqlDataSourceCommandEventArgs.cs
- TransferMode.cs
- ExtractCollection.cs
- RefreshEventArgs.cs
- HMACRIPEMD160.cs
- LogConverter.cs
- UserControl.cs
- SqlConnectionStringBuilder.cs
- OutKeywords.cs
- SimpleTypesSurrogate.cs
- AttributeCollection.cs
- FormatStringEditor.cs
- DecimalConverter.cs
- TraceHelpers.cs
- BigInt.cs
- Run.cs
- BlurBitmapEffect.cs
- DoubleAnimation.cs
- KeysConverter.cs
- VisualTreeHelper.cs
- _OverlappedAsyncResult.cs
- DoWhileDesigner.xaml.cs
- Point.cs
- DropShadowBitmapEffect.cs
- DuplexClientBase.cs
- WebDisplayNameAttribute.cs
- TextTreeRootNode.cs
- WebBrowserHelper.cs
- WmiEventSink.cs
- NotCondition.cs