Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDisplayNameAttribute.cs / 1305376 / ResourceDisplayNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; namespace System.Web.UI.WebControls { [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 = System.Web.UI.WebControlsRes.GetString(_displayNameResourceName); } 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
- Point4D.cs
- ChildrenQuery.cs
- NameValueConfigurationElement.cs
- TextServicesCompartmentEventSink.cs
- MenuEventArgs.cs
- parserscommon.cs
- TextureBrush.cs
- SecurityCookieModeValidator.cs
- DetailsViewRow.cs
- Track.cs
- ThreadNeutralSemaphore.cs
- XmlAttributeAttribute.cs
- AffineTransform3D.cs
- DataTableReader.cs
- BaseCodeDomTreeGenerator.cs
- odbcmetadatafactory.cs
- EnvironmentPermission.cs
- DLinqAssociationProvider.cs
- StrokeNodeData.cs
- ActivityDesigner.cs
- PassportIdentity.cs
- RoutedEventArgs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Model3D.cs
- DBSqlParserColumn.cs
- ConfigurationStrings.cs
- XmlWriterSettings.cs
- AttachedAnnotation.cs
- SqlCachedBuffer.cs
- ChannelManager.cs
- ResourceAssociationType.cs
- StrokeRenderer.cs
- TextChange.cs
- KeyPressEvent.cs
- StandardBindingElementCollection.cs
- QuaternionRotation3D.cs
- TabControlEvent.cs
- Formatter.cs
- DataGridViewBand.cs
- OdbcInfoMessageEvent.cs
- DataGridViewTopRowAccessibleObject.cs
- WebBrowserUriTypeConverter.cs
- ValidatingReaderNodeData.cs
- RegexRunnerFactory.cs
- NotifyIcon.cs
- WebPartAddingEventArgs.cs
- MultiTrigger.cs
- QueryRewriter.cs
- PhysicalAddress.cs
- StrokeCollection2.cs
- EventsTab.cs
- ApplicationManager.cs
- ListBindableAttribute.cs
- TaskExceptionHolder.cs
- SoapMessage.cs
- StringFreezingAttribute.cs
- SchemaImporterExtensionElementCollection.cs
- DateTimeValueSerializerContext.cs
- XmlSerializerVersionAttribute.cs
- ListViewInsertedEventArgs.cs
- TrustLevel.cs
- IIS7ConfigurationLoader.cs
- FeatureSupport.cs
- ExtensibleClassFactory.cs
- ECDsa.cs
- PropertyValueUIItem.cs
- TextClipboardData.cs
- ActivityTrace.cs
- DictionaryBase.cs
- CustomTypeDescriptor.cs
- OutputCacheSettingsSection.cs
- ImmutableObjectAttribute.cs
- WindowsFormsEditorServiceHelper.cs
- DataSysAttribute.cs
- ButtonColumn.cs
- ImageFormat.cs
- PolicyStatement.cs
- FormsAuthenticationCredentials.cs
- MutexSecurity.cs
- DataListItemEventArgs.cs
- Matrix3D.cs
- EntryIndex.cs
- LicFileLicenseProvider.cs
- WindowsButton.cs
- SerializerWriterEventHandlers.cs
- PtsCache.cs
- DynamicPropertyHolder.cs
- Cloud.cs
- UserControl.cs
- ListViewUpdatedEventArgs.cs
- PrimitiveXmlSerializers.cs
- TemplateEditingService.cs
- SessionPageStatePersister.cs
- MapPathBasedVirtualPathProvider.cs
- SymLanguageVendor.cs
- DecoratedNameAttribute.cs
- UIElementParagraph.cs
- LoadRetryAsyncResult.cs
- ConfigurationHandlersInstallComponent.cs
- AsymmetricSecurityProtocolFactory.cs