Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- InsufficientMemoryException.cs
- Property.cs
- CompilerTypeWithParams.cs
- CreateSequence.cs
- TemplateInstanceAttribute.cs
- _IPv4Address.cs
- CodeExporter.cs
- RegexMatchCollection.cs
- ErrorStyle.cs
- WindowsFormsSynchronizationContext.cs
- Queue.cs
- WorkflowInstanceTerminatedRecord.cs
- TypeViewSchema.cs
- ZipPackage.cs
- AssemblyAssociatedContentFileAttribute.cs
- BamlStream.cs
- XmlSchemaImporter.cs
- EntityConnectionStringBuilderItem.cs
- ConfigUtil.cs
- TextTreeRootTextBlock.cs
- BounceEase.cs
- unsafenativemethodsother.cs
- FileVersion.cs
- DBBindings.cs
- ProfileService.cs
- QuotedPrintableStream.cs
- ProviderCommandInfoUtils.cs
- XmlHelper.cs
- DiagnosticsConfiguration.cs
- Types.cs
- x509utils.cs
- PageResolution.cs
- Property.cs
- DataObject.cs
- LinkedList.cs
- DoubleLink.cs
- SymmetricKey.cs
- HtmlInputSubmit.cs
- AttributedMetaModel.cs
- XmlSchemaImporter.cs
- LogReserveAndAppendState.cs
- Adorner.cs
- ProgressBar.cs
- EventTrigger.cs
- LayoutInformation.cs
- ToolBar.cs
- ExpressionWriter.cs
- Filter.cs
- DataGridViewColumnConverter.cs
- RangeValuePattern.cs
- TPLETWProvider.cs
- BaseTreeIterator.cs
- OperatingSystem.cs
- EmptyTextWriter.cs
- FileAuthorizationModule.cs
- NullableBoolConverter.cs
- DataTableExtensions.cs
- CollectionEditVerbManager.cs
- COM2IPerPropertyBrowsingHandler.cs
- PopupControlService.cs
- NameNode.cs
- SyndicationCategory.cs
- PropertyValueUIItem.cs
- DataGridViewCell.cs
- VirtualPathUtility.cs
- SiteOfOriginContainer.cs
- NetStream.cs
- PointHitTestResult.cs
- ResourceDescriptionAttribute.cs
- SevenBitStream.cs
- HealthMonitoringSectionHelper.cs
- DataSourceHelper.cs
- NetSectionGroup.cs
- COM2FontConverter.cs
- PrePostDescendentsWalker.cs
- EncoderParameter.cs
- TabletCollection.cs
- HttpResponseWrapper.cs
- GlobalizationSection.cs
- SizeValueSerializer.cs
- HttpResponseBase.cs
- login.cs
- EntityCodeGenerator.cs
- ProviderConnectionPoint.cs
- SQLInt32.cs
- TypeElement.cs
- GeneralTransform3DTo2DTo3D.cs
- ActivityFunc.cs
- BlurBitmapEffect.cs
- DSACryptoServiceProvider.cs
- Ray3DHitTestResult.cs
- TableLayoutSettings.cs
- StubHelpers.cs
- ReceiveSecurityHeader.cs
- ElementUtil.cs
- ResolvePPIDRequest.cs
- DetailsViewPagerRow.cs
- ToolStripContainerDesigner.cs
- MetabaseSettingsIis7.cs
- EmptyElement.cs