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
- _PooledStream.cs
- StrokeCollectionConverter.cs
- ExecutedRoutedEventArgs.cs
- ListViewItem.cs
- Sorting.cs
- SelectionRangeConverter.cs
- MetadataArtifactLoaderResource.cs
- ObjectQueryProvider.cs
- SafeNativeMethodsCLR.cs
- StrongNameUtility.cs
- IdentityElement.cs
- TextPointerBase.cs
- SqlError.cs
- DeferredElementTreeState.cs
- TriState.cs
- ContextMenu.cs
- MappingItemCollection.cs
- CharEnumerator.cs
- ChannelServices.cs
- QueryAccessibilityHelpEvent.cs
- LogRestartAreaEnumerator.cs
- versioninfo.cs
- ClientBuildManager.cs
- OperationAbortedException.cs
- DefaultProxySection.cs
- DiffuseMaterial.cs
- SchemaImporter.cs
- Utils.cs
- WebPartManagerInternals.cs
- BCLDebug.cs
- HttpCacheParams.cs
- QueryCacheManager.cs
- autovalidator.cs
- WpfPayload.cs
- HttpModuleActionCollection.cs
- RadioButtonBaseAdapter.cs
- OdbcFactory.cs
- SendKeys.cs
- Variant.cs
- FieldDescriptor.cs
- NativeMethods.cs
- ThaiBuddhistCalendar.cs
- DownloadProgressEventArgs.cs
- HtmlWindow.cs
- FilterableData.cs
- TextComposition.cs
- WorkflowWebService.cs
- _ListenerAsyncResult.cs
- BevelBitmapEffect.cs
- WebServiceReceiveDesigner.cs
- EventLogStatus.cs
- DateTimeOffset.cs
- IdentityNotMappedException.cs
- MetadataFile.cs
- LocalizableAttribute.cs
- LinqDataSourceUpdateEventArgs.cs
- InternalEnumValidator.cs
- UInt16.cs
- ServiceParser.cs
- ColorAnimationBase.cs
- ListParagraph.cs
- HasCopySemanticsAttribute.cs
- DataGridViewCheckBoxCell.cs
- COM2AboutBoxPropertyDescriptor.cs
- ComplusTypeValidator.cs
- TriggerCollection.cs
- TemplatePagerField.cs
- Subordinate.cs
- StatusBarPanelClickEvent.cs
- GuidelineSet.cs
- Expression.DebuggerProxy.cs
- AspNetHostingPermission.cs
- TemplateDefinition.cs
- MissingFieldException.cs
- XamlPathDataSerializer.cs
- SerializationHelper.cs
- LiteralTextParser.cs
- Vector3DAnimationBase.cs
- TextTreeNode.cs
- Configuration.cs
- NotificationContext.cs
- TextMessageEncodingElement.cs
- FatalException.cs
- SystemIPv6InterfaceProperties.cs
- DynamicPhysicalDiscoSearcher.cs
- UInt16Converter.cs
- GAC.cs
- MimePart.cs
- LineBreakRecord.cs
- SafeArrayRankMismatchException.cs
- EventItfInfo.cs
- UIntPtr.cs
- SmtpTransport.cs
- sqlpipe.cs
- ByteStreamMessage.cs
- RootBrowserWindow.cs
- ViewService.cs
- TypedTableGenerator.cs
- dsa.cs
- ListDataBindEventArgs.cs