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
- OracleDateTime.cs
- NullableLongMinMaxAggregationOperator.cs
- ProtectedProviderSettings.cs
- SafeMILHandle.cs
- HttpModuleCollection.cs
- IssuedTokenClientCredential.cs
- ToolbarAUtomationPeer.cs
- SQLConvert.cs
- HotSpot.cs
- TargetConverter.cs
- MdImport.cs
- XmlSerializerSection.cs
- AuthorizationRuleCollection.cs
- SmtpTransport.cs
- CommandField.cs
- ModelItemDictionaryImpl.cs
- MethodImplAttribute.cs
- Grant.cs
- ToolStripComboBox.cs
- ExternalException.cs
- PolygonHotSpot.cs
- DisposableCollectionWrapper.cs
- SecurityVersion.cs
- XmlReturnWriter.cs
- DictionaryCustomTypeDescriptor.cs
- RSAPKCS1SignatureDeformatter.cs
- ObjectSecurityT.cs
- ExpandableObjectConverter.cs
- MenuRendererClassic.cs
- HttpFileCollectionBase.cs
- CodeCompiler.cs
- SortedDictionary.cs
- WorkflowControlEndpoint.cs
- ManipulationDelta.cs
- UntrustedRecipientException.cs
- CultureInfo.cs
- Cloud.cs
- FormsAuthenticationEventArgs.cs
- ObjectDataSourceView.cs
- ErrorInfoXmlDocument.cs
- odbcmetadatacolumnnames.cs
- WebPartDesigner.cs
- EndPoint.cs
- WorkflowNamespace.cs
- PrintDocument.cs
- CompilerState.cs
- TerminateSequenceResponse.cs
- DesignerVerb.cs
- StructuralObject.cs
- UserControlAutomationPeer.cs
- PersonalizationStateInfo.cs
- formatter.cs
- ListQueryResults.cs
- TreeNodeBindingDepthConverter.cs
- ManualResetEvent.cs
- PersonalizationStateInfoCollection.cs
- AppDomain.cs
- OleDbStruct.cs
- InstanceLockLostException.cs
- DataColumnMappingCollection.cs
- storepermissionattribute.cs
- DockAndAnchorLayout.cs
- GridLength.cs
- TextBoxRenderer.cs
- EpmHelper.cs
- HandlerBase.cs
- JsonServiceDocumentSerializer.cs
- XPathNodeIterator.cs
- SqlBulkCopyColumnMappingCollection.cs
- SafeSecurityHandles.cs
- QilPatternVisitor.cs
- RenderDataDrawingContext.cs
- URLBuilder.cs
- TraversalRequest.cs
- RetrieveVirtualItemEventArgs.cs
- Debug.cs
- CancellationState.cs
- XmlSchemaObjectTable.cs
- CursorConverter.cs
- documentsequencetextpointer.cs
- FrameworkElement.cs
- xdrvalidator.cs
- TargetInvocationException.cs
- VariableAction.cs
- ConfigUtil.cs
- Timer.cs
- Int64KeyFrameCollection.cs
- X509ChainElement.cs
- ProgressBarRenderer.cs
- Block.cs
- UriTemplateTrieLocation.cs
- FontCacheUtil.cs
- SmtpFailedRecipientException.cs
- NumberSubstitution.cs
- RuntimeConfig.cs
- CellParaClient.cs
- HtmlButton.cs
- _AutoWebProxyScriptHelper.cs
- SoapReflector.cs
- DesignTable.cs