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
- DispatcherObject.cs
- SystemIPInterfaceStatistics.cs
- StreamingContext.cs
- AddressHeader.cs
- SamlAuthorizationDecisionStatement.cs
- ExtensibleSyndicationObject.cs
- SoapReflectionImporter.cs
- ThreadInterruptedException.cs
- HotCommands.cs
- NotificationContext.cs
- XmlSignatureProperties.cs
- TileBrush.cs
- RawUIStateInputReport.cs
- ContextStaticAttribute.cs
- XmlQualifiedNameTest.cs
- PageCodeDomTreeGenerator.cs
- SamlAssertionKeyIdentifierClause.cs
- ControlDesignerState.cs
- XmlAnyAttributeAttribute.cs
- DrawingVisualDrawingContext.cs
- MailSettingsSection.cs
- OutputCacheProfile.cs
- StrokeNodeData.cs
- WorkflowMarkupSerializerMapping.cs
- DBSqlParserTableCollection.cs
- VirtualPath.cs
- FormsAuthenticationConfiguration.cs
- HttpClientCertificate.cs
- UrlParameterWriter.cs
- WindowsGraphics2.cs
- CommandValueSerializer.cs
- ContextMarshalException.cs
- SpecialTypeDataContract.cs
- WebResponse.cs
- RequestChannelBinder.cs
- WebControlAdapter.cs
- xmlfixedPageInfo.cs
- VersionUtil.cs
- ScrollBar.cs
- SafeNativeMethods.cs
- InvokeBinder.cs
- XamlVector3DCollectionSerializer.cs
- WebPartEditorOkVerb.cs
- BamlBinaryWriter.cs
- EncoderExceptionFallback.cs
- HttpApplication.cs
- EnlistmentTraceIdentifier.cs
- JsonEncodingStreamWrapper.cs
- CheckBoxPopupAdapter.cs
- LayoutTableCell.cs
- DataGridViewImageCell.cs
- IdentityReference.cs
- InstanceNormalEvent.cs
- Rotation3DKeyFrameCollection.cs
- TwoPhaseCommit.cs
- SymbolDocumentGenerator.cs
- RouteValueExpressionBuilder.cs
- RawKeyboardInputReport.cs
- WebServicesInteroperability.cs
- ComponentResourceKey.cs
- GroupBox.cs
- MimeFormatExtensions.cs
- RightsManagementPermission.cs
- PageRequestManager.cs
- CodeBlockBuilder.cs
- AndAlso.cs
- ToolStripItemRenderEventArgs.cs
- HandleRef.cs
- XmlMemberMapping.cs
- ToolStripItemBehavior.cs
- DataObjectSettingDataEventArgs.cs
- GlobalItem.cs
- SqlRewriteScalarSubqueries.cs
- XPathNodeHelper.cs
- ExpressionVisitorHelpers.cs
- ObjectNavigationPropertyMapping.cs
- DataKeyArray.cs
- CategoryGridEntry.cs
- WbmpConverter.cs
- BridgeDataRecord.cs
- LoginName.cs
- _SingleItemRequestCache.cs
- MonitorWrapper.cs
- MiniModule.cs
- TextEffectResolver.cs
- MouseButtonEventArgs.cs
- IndicCharClassifier.cs
- SimpleFieldTemplateUserControl.cs
- RangeValuePatternIdentifiers.cs
- Matrix.cs
- lengthconverter.cs
- SafeFileHandle.cs
- DictionaryGlobals.cs
- SHA256.cs
- TextCollapsingProperties.cs
- ScriptReferenceBase.cs
- EventSinkHelperWriter.cs
- HandledMouseEvent.cs
- SpellerHighlightLayer.cs
- Processor.cs