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
- SamlAttributeStatement.cs
- DockPanel.cs
- WindowsUpDown.cs
- WSDualHttpBindingCollectionElement.cs
- SqlDataAdapter.cs
- ToolboxItemAttribute.cs
- XsdValidatingReader.cs
- SelectionHighlightInfo.cs
- TemplateControlBuildProvider.cs
- DataGridViewButtonColumn.cs
- HtmlTableCellCollection.cs
- SerializerDescriptor.cs
- ReadOnlyPropertyMetadata.cs
- Crypto.cs
- PhysicalOps.cs
- SerializerWriterEventHandlers.cs
- RemotingException.cs
- Stackframe.cs
- Configuration.cs
- MessageDecoder.cs
- NativeWrapper.cs
- Panel.cs
- StructureChangedEventArgs.cs
- ImageAttributes.cs
- DocumentGridPage.cs
- LinkButton.cs
- Model3DGroup.cs
- DataControlPagerLinkButton.cs
- BufferModeSettings.cs
- BlurEffect.cs
- RegularExpressionValidator.cs
- StickyNoteContentControl.cs
- UnsafeNativeMethods.cs
- BitStream.cs
- XmlNavigatorFilter.cs
- KeyGesture.cs
- OutputCacheModule.cs
- ConfigurationManager.cs
- TransformCryptoHandle.cs
- SqlGenerator.cs
- _NtlmClient.cs
- TraceContextEventArgs.cs
- Hex.cs
- ImmComposition.cs
- ValidatorCollection.cs
- ObjectConverter.cs
- AspNetPartialTrustHelpers.cs
- XmlBoundElement.cs
- DataPointer.cs
- BoolExpression.cs
- WindowsIdentity.cs
- CustomAttributeBuilder.cs
- RuleCache.cs
- WebPageTraceListener.cs
- Collection.cs
- TransformBlockRequest.cs
- Rect3D.cs
- InheritanceContextHelper.cs
- ByteAnimationUsingKeyFrames.cs
- UrlPath.cs
- Crc32.cs
- parserscommon.cs
- TextFormatterHost.cs
- DropShadowEffect.cs
- PeerPresenceInfo.cs
- MaskDescriptor.cs
- PrimitiveCodeDomSerializer.cs
- _CacheStreams.cs
- RoleManagerEventArgs.cs
- Literal.cs
- FileClassifier.cs
- WebConfigurationHostFileChange.cs
- BulletChrome.cs
- AnnotationObservableCollection.cs
- SEHException.cs
- FragmentNavigationEventArgs.cs
- BuildResult.cs
- OpCopier.cs
- ConnectionStringsSection.cs
- FormattedTextSymbols.cs
- AuthenticationException.cs
- TraceUtility.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- DateTimeValueSerializerContext.cs
- AppDomainUnloadedException.cs
- VisualStyleInformation.cs
- SqlBooleanMismatchVisitor.cs
- BooleanFunctions.cs
- VariableAction.cs
- ToolStripItemEventArgs.cs
- HttpException.cs
- PenContexts.cs
- SafeCloseHandleCritical.cs
- BinHexDecoder.cs
- SafeWaitHandle.cs
- GregorianCalendar.cs
- SimpleMailWebEventProvider.cs
- Margins.cs
- DiagnosticTraceRecords.cs
- Activity.cs