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
- ResourceManager.cs
- HeaderUtility.cs
- MediaElementAutomationPeer.cs
- IIS7UserPrincipal.cs
- CheckBoxStandardAdapter.cs
- Delegate.cs
- SmiGettersStream.cs
- ConfigurationPropertyCollection.cs
- MulticastNotSupportedException.cs
- Run.cs
- KeyConverter.cs
- PagerSettings.cs
- _HeaderInfo.cs
- LogStore.cs
- MenuAutomationPeer.cs
- VerticalConnector.xaml.cs
- MsmqIntegrationSecurityElement.cs
- DebuggerAttributes.cs
- MouseActionConverter.cs
- GeneralTransform.cs
- PolyLineSegmentFigureLogic.cs
- RangeValuePatternIdentifiers.cs
- OpenFileDialog.cs
- ListControlConvertEventArgs.cs
- LockRenewalTask.cs
- COM2PropertyDescriptor.cs
- DataPagerFieldItem.cs
- ReflectionTypeLoadException.cs
- MultiSelectRootGridEntry.cs
- EdmConstants.cs
- LayoutSettings.cs
- SoapMessage.cs
- ExpanderAutomationPeer.cs
- Configuration.cs
- DiscriminatorMap.cs
- SrgsRulesCollection.cs
- CookielessHelper.cs
- OleDbConnectionFactory.cs
- ItemCheckedEvent.cs
- UInt64Storage.cs
- NavigationWindowAutomationPeer.cs
- KnownColorTable.cs
- PathSegmentCollection.cs
- serverconfig.cs
- DataGridViewCellCancelEventArgs.cs
- HttpFileCollection.cs
- FrameworkTemplate.cs
- RNGCryptoServiceProvider.cs
- IDataContractSurrogate.cs
- RegexMatchCollection.cs
- WebPartZoneBase.cs
- DesignerLinkAdapter.cs
- SizeLimitedCache.cs
- AsmxEndpointPickerExtension.cs
- WorkflowServiceBehavior.cs
- SimpleType.cs
- SponsorHelper.cs
- HtmlInputSubmit.cs
- AssemblyHash.cs
- ObjectManager.cs
- safex509handles.cs
- WebServiceTypeData.cs
- ServiceHostFactory.cs
- Single.cs
- VirtualPath.cs
- AutomationProperties.cs
- CssClassPropertyAttribute.cs
- milexports.cs
- JpegBitmapEncoder.cs
- WebConfigurationHostFileChange.cs
- NativeMethods.cs
- WebZone.cs
- Variable.cs
- ObjectAssociationEndMapping.cs
- HttpCookie.cs
- StylusPoint.cs
- HttpServerUtilityWrapper.cs
- BrowserDefinition.cs
- UnsafeNativeMethods.cs
- DataGridViewButtonColumn.cs
- ArraySegment.cs
- FileDataSourceCache.cs
- VersionPair.cs
- Misc.cs
- ToolboxDataAttribute.cs
- ToolStripScrollButton.cs
- SpellerStatusTable.cs
- MessageQueuePermissionAttribute.cs
- RegistryExceptionHelper.cs
- VirtualPathUtility.cs
- WorkflowApplicationCompletedException.cs
- TypeDescriptionProviderAttribute.cs
- Options.cs
- StdRegProviderWrapper.cs
- DynamicResourceExtensionConverter.cs
- DynamicRenderer.cs
- ConfigurationSettings.cs
- ToolStripItemBehavior.cs
- DataGridViewAddColumnDialog.cs
- PaperSource.cs