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
- ReadOnlyHierarchicalDataSource.cs
- TypeUtils.cs
- ExpressionNode.cs
- XmlBindingWorker.cs
- Property.cs
- DefaultCommandExtensionCallback.cs
- ResXBuildProvider.cs
- WebPartConnection.cs
- RowSpanVector.cs
- WebPartConnectVerb.cs
- WebPartConnectionCollection.cs
- FontNamesConverter.cs
- NativeMethods.cs
- CopyEncoder.cs
- SpoolingTaskBase.cs
- SegmentInfo.cs
- WebDescriptionAttribute.cs
- SessionStateContainer.cs
- TextServicesLoader.cs
- CountdownEvent.cs
- WebBrowserEvent.cs
- XmlRawWriter.cs
- ListViewGroup.cs
- TimerEventSubscriptionCollection.cs
- BindingRestrictions.cs
- SQLUtility.cs
- TreeNodeCollection.cs
- ListItemCollection.cs
- AutomationIdentifier.cs
- _DomainName.cs
- CustomCredentialPolicy.cs
- RectAnimation.cs
- DispatchWrapper.cs
- SimpleHandlerFactory.cs
- JsonEncodingStreamWrapper.cs
- SafePEFileHandle.cs
- TextRunProperties.cs
- EntityKey.cs
- UserControl.cs
- DefaultValidator.cs
- XmlNavigatorStack.cs
- PaperSource.cs
- SafeNativeMethodsMilCoreApi.cs
- ListSortDescription.cs
- VBIdentifierTrimConverter.cs
- WebControlsSection.cs
- FileSystemEventArgs.cs
- ClaimTypeRequirement.cs
- CodeSubDirectoriesCollection.cs
- COM2PropertyPageUITypeConverter.cs
- WebServiceClientProxyGenerator.cs
- Query.cs
- QueueException.cs
- EventLogInternal.cs
- CheckBoxPopupAdapter.cs
- SessionIDManager.cs
- Module.cs
- DocumentGridPage.cs
- SmiXetterAccessMap.cs
- ToolTipAutomationPeer.cs
- DropShadowBitmapEffect.cs
- MyContact.cs
- DataMemberConverter.cs
- Debug.cs
- Point3DCollectionValueSerializer.cs
- Triangle.cs
- HttpModuleAction.cs
- MembershipPasswordException.cs
- SettingsPropertyNotFoundException.cs
- GCHandleCookieTable.cs
- OdbcHandle.cs
- CompositeControl.cs
- DataGridViewTextBoxCell.cs
- XmlElementList.cs
- TriggerCollection.cs
- TextRunCache.cs
- SqlClientFactory.cs
- RotateTransform.cs
- AuthenticationModeHelper.cs
- KeyConverter.cs
- MarkupCompiler.cs
- SendingRequestEventArgs.cs
- Size.cs
- BufferBuilder.cs
- TagPrefixAttribute.cs
- OutputCacheSection.cs
- Config.cs
- EntityContainer.cs
- MissingSatelliteAssemblyException.cs
- EditBehavior.cs
- SymDocumentType.cs
- EventBuilder.cs
- ProjectionRewriter.cs
- EncoderFallback.cs
- StateDesigner.cs
- MonikerUtility.cs
- FreezableCollection.cs
- DbMetaDataCollectionNames.cs
- OleStrCAMarshaler.cs
- EventBindingService.cs