Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDisplayNameAttribute.cs / 2 / 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
- DynamicDocumentPaginator.cs
- DrawListViewColumnHeaderEventArgs.cs
- StateMachine.cs
- SqlBulkCopyColumnMapping.cs
- ActiveXHelper.cs
- DragStartedEventArgs.cs
- ManagementInstaller.cs
- NameSpaceEvent.cs
- ModelTreeEnumerator.cs
- ConfigurationManager.cs
- EnumConverter.cs
- SSmlParser.cs
- ProxySimple.cs
- Stacktrace.cs
- DataGridSortCommandEventArgs.cs
- HttpCacheParams.cs
- TimelineCollection.cs
- PassportIdentity.cs
- _TLSstream.cs
- TouchPoint.cs
- FontFamily.cs
- ReferenceEqualityComparer.cs
- WebPartConnectionsCloseVerb.cs
- BinaryHeap.cs
- HttpModuleActionCollection.cs
- FontWeights.cs
- DoubleKeyFrameCollection.cs
- ClientConvert.cs
- ResourceExpression.cs
- ResXResourceReader.cs
- ResourceContainer.cs
- HttpResponse.cs
- CodeGenerator.cs
- FormsAuthenticationEventArgs.cs
- ArgumentOutOfRangeException.cs
- HttpDigestClientElement.cs
- VarInfo.cs
- DataSourceCacheDurationConverter.cs
- WindowsPen.cs
- WindowsContainer.cs
- SecurityTokenTypes.cs
- ErrorWrapper.cs
- LayoutInformation.cs
- EntityDataSourceWrapper.cs
- Rule.cs
- Dictionary.cs
- PropertyInfoSet.cs
- ModelTreeManager.cs
- DockEditor.cs
- PropertyDescriptor.cs
- XmlChildEnumerator.cs
- HtmlTernaryTree.cs
- SynchronizedDispatch.cs
- SByteConverter.cs
- ErrorProvider.cs
- ListViewGroup.cs
- IsolatedStorageFilePermission.cs
- SafeEventHandle.cs
- ImageList.cs
- SmiRecordBuffer.cs
- GridViewDeletedEventArgs.cs
- TextEditorThreadLocalStore.cs
- DoubleAnimationUsingKeyFrames.cs
- SafeFileMappingHandle.cs
- CodeBlockBuilder.cs
- DbConnectionHelper.cs
- TextRangeEdit.cs
- WizardPanel.cs
- metadatamappinghashervisitor.cs
- QilInvokeEarlyBound.cs
- CodeTryCatchFinallyStatement.cs
- XmlElementCollection.cs
- Point3DKeyFrameCollection.cs
- PathSegmentCollection.cs
- Bidi.cs
- NavigatorOutput.cs
- ConfigPathUtility.cs
- CodeGeneratorOptions.cs
- OdbcException.cs
- AppDomainManager.cs
- ThreadAbortException.cs
- XPathItem.cs
- WorkflowDesignerColors.cs
- TextElementEnumerator.cs
- TextContainerHelper.cs
- WindowsSpinner.cs
- ObjectDataSourceMethodEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- NetMsmqBindingElement.cs
- IMembershipProvider.cs
- GetPageCompletedEventArgs.cs
- TextParagraphView.cs
- WeakEventTable.cs
- RemoteX509Token.cs
- FacetValues.cs
- SortExpressionBuilder.cs
- WithStatement.cs
- Viewport3DAutomationPeer.cs
- Point4DValueSerializer.cs
- TextSelectionProcessor.cs