Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CodeGroup.cs
- ExecutionContext.cs
- DockPattern.cs
- Annotation.cs
- Trace.cs
- IisTraceListener.cs
- XmlChoiceIdentifierAttribute.cs
- DynamicDocumentPaginator.cs
- DBAsyncResult.cs
- X509Extension.cs
- ObjectMemberMapping.cs
- log.cs
- ListViewItem.cs
- FormsAuthenticationUserCollection.cs
- AuthorizationRule.cs
- AmbientLight.cs
- SecurityToken.cs
- GZipDecoder.cs
- LinkedResource.cs
- XmlWrappingReader.cs
- DataSet.cs
- ProviderException.cs
- FontStretch.cs
- ScriptManagerProxy.cs
- DataSourceListEditor.cs
- ProtocolsSection.cs
- WorkflowLayouts.cs
- HtmlInputControl.cs
- EntityDataSourceColumn.cs
- SqlConnectionPoolProviderInfo.cs
- ReadOnlyPermissionSet.cs
- CodeVariableDeclarationStatement.cs
- Types.cs
- HandlerBase.cs
- FileDialog.cs
- ObjectFullSpanRewriter.cs
- FixedHyperLink.cs
- AutomationElementCollection.cs
- DataBindingHandlerAttribute.cs
- ComplexObject.cs
- SafeArrayTypeMismatchException.cs
- ThicknessAnimation.cs
- RadioButton.cs
- DataTable.cs
- BrowserTree.cs
- CompModSwitches.cs
- SecurityDescriptor.cs
- HMACSHA1.cs
- MultiBindingExpression.cs
- HandlerFactoryCache.cs
- WasNotInstalledException.cs
- ipaddressinformationcollection.cs
- LogRecordSequence.cs
- TraceRecord.cs
- InternalMappingException.cs
- _UncName.cs
- Properties.cs
- VariableQuery.cs
- QueryPageSettingsEventArgs.cs
- BamlCollectionHolder.cs
- Decoder.cs
- DodSequenceMerge.cs
- HMACSHA1.cs
- DataGridViewUtilities.cs
- StrokeNode.cs
- EventlogProvider.cs
- CommandLibraryHelper.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- DrawingContextWalker.cs
- KoreanCalendar.cs
- IdleTimeoutMonitor.cs
- OperationContractGenerationContext.cs
- SocketException.cs
- HandlerFactoryCache.cs
- TypeListConverter.cs
- Overlapped.cs
- GridViewCancelEditEventArgs.cs
- ImageAttributes.cs
- RadioButton.cs
- EntityDataSourceDesigner.cs
- basevalidator.cs
- OrCondition.cs
- PointCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TraceContextEventArgs.cs
- ProjectionPlan.cs
- ContextMenu.cs
- SafeBitVector32.cs
- TimeEnumHelper.cs
- Types.cs
- XmlHierarchicalEnumerable.cs
- XmlCountingReader.cs
- StandardToolWindows.cs
- ProxyWebPartManager.cs
- BatchStream.cs
- SqlStatistics.cs
- EmptyQuery.cs
- Menu.cs
- DictionaryEntry.cs
- ComponentManagerBroker.cs