Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- NativeMethods.cs
- TimeoutException.cs
- RawAppCommandInputReport.cs
- HtmlTableRowCollection.cs
- DataGridColumn.cs
- ProgressBarHighlightConverter.cs
- XmlEncodedRawTextWriter.cs
- TypeSystemHelpers.cs
- SHA512CryptoServiceProvider.cs
- DataGridViewCell.cs
- IsolatedStorageFileStream.cs
- EditableRegion.cs
- SafeCertificateContext.cs
- BitVec.cs
- OracleCommandSet.cs
- Popup.cs
- DynamicDocumentPaginator.cs
- RuntimeWrappedException.cs
- DesignRelationCollection.cs
- LookupNode.cs
- XAMLParseException.cs
- ProjectionAnalyzer.cs
- WeakReferenceEnumerator.cs
- Itemizer.cs
- EventQueueState.cs
- EditorBrowsableAttribute.cs
- UnmanagedMemoryStream.cs
- XmlReader.cs
- Site.cs
- assemblycache.cs
- FixUpCollection.cs
- OutputCacheProviderCollection.cs
- ParameterCollection.cs
- SqlTransaction.cs
- ContextStaticAttribute.cs
- ComNativeDescriptor.cs
- HostingEnvironment.cs
- SuppressMessageAttribute.cs
- TextServicesProperty.cs
- AccessedThroughPropertyAttribute.cs
- InputScopeNameConverter.cs
- CodeSubDirectoriesCollection.cs
- XmlSchemaChoice.cs
- DynamicILGenerator.cs
- TagPrefixInfo.cs
- BrowserCapabilitiesFactoryBase.cs
- LockedActivityGlyph.cs
- InkCollectionBehavior.cs
- Opcode.cs
- Serialization.cs
- CustomWebEventKey.cs
- CategoryGridEntry.cs
- _DomainName.cs
- StreamSecurityUpgradeAcceptorBase.cs
- TTSEngineTypes.cs
- ObjectMaterializedEventArgs.cs
- ReliableOutputConnection.cs
- TypeUsageBuilder.cs
- Canvas.cs
- ChannelBinding.cs
- AttributeEmitter.cs
- DataRecordInfo.cs
- ApplicationManager.cs
- TabItemAutomationPeer.cs
- SafeThreadHandle.cs
- PresentationAppDomainManager.cs
- Soap.cs
- DbMetaDataCollectionNames.cs
- WebPartDisplayModeEventArgs.cs
- ByteAnimation.cs
- ReadWriteSpinLock.cs
- CollectionCodeDomSerializer.cs
- ForEach.cs
- ServiceContractGenerator.cs
- _BasicClient.cs
- _Semaphore.cs
- AppDomainUnloadedException.cs
- SimpleHandlerFactory.cs
- ScriptComponentDescriptor.cs
- path.cs
- QueryCoreOp.cs
- PresentationTraceSources.cs
- FilteredXmlReader.cs
- CorrelationKeyCalculator.cs
- TagNameToTypeMapper.cs
- ListControl.cs
- StaticDataManager.cs
- Script.cs
- EntityDataSourceWrapperCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- NumberEdit.cs
- AuthenticationConfig.cs
- MailMessageEventArgs.cs
- WebBrowserNavigatingEventHandler.cs
- SrgsRule.cs
- VectorCollection.cs
- Part.cs
- DeclarationUpdate.cs
- HebrewNumber.cs
- x509store.cs