Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDescriptionAttribute.cs / 1305376 / ResourceDescriptionAttribute.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 | AttributeTargets.Property | AttributeTargets.Event, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDescriptionAttribute : DescriptionAttribute { private bool _resourceLoaded; private readonly string _descriptionResourceName; public ResourceDescriptionAttribute(string descriptionResourceName) { _descriptionResourceName = descriptionResourceName; } public override string Description { get { if (!_resourceLoaded) { _resourceLoaded = true; DescriptionValue = System.Web.UI.WebControlsRes.GetString(_descriptionResourceName); } return base.Description; } } } } // 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
- TypeConverterAttribute.cs
- RoleManagerEventArgs.cs
- ReadOnlyDataSourceView.cs
- OdbcPermission.cs
- KeyEventArgs.cs
- OleDbTransaction.cs
- GridViewHeaderRowPresenter.cs
- JsonClassDataContract.cs
- TimeManager.cs
- PanelStyle.cs
- FormViewInsertEventArgs.cs
- InvalidWMPVersionException.cs
- Visitor.cs
- StatusBarAutomationPeer.cs
- SafeHandles.cs
- TableLayoutPanelResizeGlyph.cs
- SynchronizingStream.cs
- KeyToListMap.cs
- safemediahandle.cs
- StrokeNodeOperations2.cs
- SelectorAutomationPeer.cs
- BitmapVisualManager.cs
- UserThread.cs
- OracleBFile.cs
- XamlPoint3DCollectionSerializer.cs
- DataControlField.cs
- InvokePattern.cs
- AssemblySettingAttributes.cs
- SqlFactory.cs
- ToolStripItem.cs
- WebPartCollection.cs
- DataGridViewCellStyleConverter.cs
- SizeIndependentAnimationStorage.cs
- ColumnResult.cs
- thaishape.cs
- COAUTHIDENTITY.cs
- Image.cs
- BinaryUtilClasses.cs
- PropertyChangeTracker.cs
- CollectionsUtil.cs
- PackageRelationshipCollection.cs
- MdiWindowListItemConverter.cs
- PublisherIdentityPermission.cs
- BatchParser.cs
- SoapBinding.cs
- XXXInfos.cs
- FormViewDeleteEventArgs.cs
- TrustManagerPromptUI.cs
- BufferModeSettings.cs
- PathGeometry.cs
- RequiredArgumentAttribute.cs
- AgileSafeNativeMemoryHandle.cs
- XPathAxisIterator.cs
- Visual3DCollection.cs
- _NTAuthentication.cs
- BindingCompleteEventArgs.cs
- WebPartDisplayMode.cs
- XamlTypeMapperSchemaContext.cs
- ActiveXContainer.cs
- ActivationProxy.cs
- ExternalCalls.cs
- XmlWrappingWriter.cs
- cookieexception.cs
- CardSpaceSelector.cs
- WsatProxy.cs
- SchemaNamespaceManager.cs
- SecurityElement.cs
- ThemeableAttribute.cs
- AssertSection.cs
- ItemContainerProviderWrapper.cs
- GestureRecognitionResult.cs
- WebEventTraceProvider.cs
- RegexWorker.cs
- ResourceAssociationTypeEnd.cs
- namescope.cs
- MemberHolder.cs
- MenuStrip.cs
- BookmarkEventArgs.cs
- GlyphsSerializer.cs
- Vector3dCollection.cs
- UrlMappingsModule.cs
- XmlNamespaceMapping.cs
- BaseResourcesBuildProvider.cs
- ResourceReferenceExpression.cs
- RequestQueryParser.cs
- TemplateControl.cs
- HtmlInputReset.cs
- CharEnumerator.cs
- MenuItemStyle.cs
- DataGridViewBindingCompleteEventArgs.cs
- RuntimeConfig.cs
- WebPartChrome.cs
- SimpleBitVector32.cs
- HttpHandlersSection.cs
- DoubleLinkListEnumerator.cs
- MatrixTransform3D.cs
- StatementContext.cs
- WebPartDeleteVerb.cs
- xmlsaver.cs
- EventMappingSettings.cs