Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDescriptionAttribute.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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
- DispatcherProcessingDisabled.cs
- Size3D.cs
- PropertyTabAttribute.cs
- TransformDescriptor.cs
- QuadraticBezierSegment.cs
- XmlUrlResolver.cs
- FormsAuthentication.cs
- HMACRIPEMD160.cs
- BitmapFrameDecode.cs
- ChtmlFormAdapter.cs
- UpdateEventArgs.cs
- NonBatchDirectoryCompiler.cs
- KnownBoxes.cs
- CodeConstructor.cs
- ZoneButton.cs
- Int32KeyFrameCollection.cs
- CompositeScriptReference.cs
- ServiceEndpoint.cs
- QueueNameHelper.cs
- PrintEvent.cs
- SortedDictionary.cs
- ContextMenuAutomationPeer.cs
- PixelShader.cs
- Int32AnimationUsingKeyFrames.cs
- ChannelManager.cs
- DesignerDeviceConfig.cs
- BroadcastEventHelper.cs
- HtmlControl.cs
- CodeExpressionStatement.cs
- InputLangChangeEvent.cs
- pingexception.cs
- ControlBuilder.cs
- COM2PropertyBuilderUITypeEditor.cs
- SkipQueryOptionExpression.cs
- XmlComment.cs
- WebColorConverter.cs
- BamlVersionHeader.cs
- ReflectionServiceProvider.cs
- XmlAttributeAttribute.cs
- SiteMapNode.cs
- InputBindingCollection.cs
- BitmapImage.cs
- ParameterCollection.cs
- SessionPageStateSection.cs
- VectorKeyFrameCollection.cs
- TdsParserHelperClasses.cs
- UpdateInfo.cs
- FixedSOMTableRow.cs
- RenderTargetBitmap.cs
- IntSecurity.cs
- SchemaMapping.cs
- ConstructorNeedsTagAttribute.cs
- DoubleAnimationUsingKeyFrames.cs
- ObjectStateManager.cs
- XmlCustomFormatter.cs
- ProgressiveCrcCalculatingStream.cs
- DocumentViewerBase.cs
- RequestCachePolicyConverter.cs
- Line.cs
- XmlSerializationWriter.cs
- BrowsableAttribute.cs
- ArrayList.cs
- BitmapFrameEncode.cs
- DatagridviewDisplayedBandsData.cs
- IntSecurity.cs
- ChildTable.cs
- Base64Encoding.cs
- MultiAsyncResult.cs
- FaultPropagationQuery.cs
- JsonSerializer.cs
- TagMapInfo.cs
- DefaultAssemblyResolver.cs
- CodeBinaryOperatorExpression.cs
- HttpCacheParams.cs
- XmlConverter.cs
- Activator.cs
- CroppedBitmap.cs
- PersistenceProviderDirectory.cs
- CodeVariableReferenceExpression.cs
- SystemDiagnosticsSection.cs
- StorageBasedPackageProperties.cs
- FrameDimension.cs
- HealthMonitoringSection.cs
- HttpVersion.cs
- GifBitmapDecoder.cs
- SchemaElement.cs
- EntityClientCacheKey.cs
- MsmqMessage.cs
- FixedDocument.cs
- ClientBuildManagerCallback.cs
- DocumentViewer.cs
- TextMessageEncodingBindingElement.cs
- RuleInfoComparer.cs
- RC2.cs
- AnnotationService.cs
- FunctionImportMapping.cs
- FixedPageProcessor.cs
- SelectionItemPattern.cs
- x509store.cs