Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDescriptionAttribute.cs / 1 / 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
- TypeExtension.cs
- DocumentOutline.cs
- LoopExpression.cs
- XmlSchemaValidationException.cs
- WebPartEditorApplyVerb.cs
- DefaultBindingPropertyAttribute.cs
- LicenseContext.cs
- XPathQilFactory.cs
- TrackingCondition.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- XmlNodeChangedEventArgs.cs
- COM2EnumConverter.cs
- QuaternionConverter.cs
- SiteOfOriginContainer.cs
- ReservationCollection.cs
- WebBrowserNavigatingEventHandler.cs
- DataGridLinkButton.cs
- RawTextInputReport.cs
- LicenseManager.cs
- PointAnimationUsingPath.cs
- FloaterParagraph.cs
- MetadataWorkspace.cs
- LiteralTextContainerControlBuilder.cs
- QueryCorrelationInitializer.cs
- ApplicationSecurityInfo.cs
- SqlProcedureAttribute.cs
- NameValueSectionHandler.cs
- milexports.cs
- TagNameToTypeMapper.cs
- CollaborationHelperFunctions.cs
- PaperSize.cs
- HostingPreferredMapPath.cs
- MailWebEventProvider.cs
- LayoutTable.cs
- HashCodeCombiner.cs
- MailHeaderInfo.cs
- ControlValuePropertyAttribute.cs
- FormsAuthenticationUserCollection.cs
- WindowsScrollBar.cs
- InvalidComObjectException.cs
- PanningMessageFilter.cs
- ResizingMessageFilter.cs
- TextRunCache.cs
- QueryHandler.cs
- FileFormatException.cs
- ComponentFactoryHelpers.cs
- DefaultIfEmptyQueryOperator.cs
- SrgsDocumentParser.cs
- XmlSchemaException.cs
- TailCallAnalyzer.cs
- UnSafeCharBuffer.cs
- RequiredAttributeAttribute.cs
- PerfCounterSection.cs
- ConditionBrowserDialog.cs
- SiteMapProvider.cs
- Container.cs
- SHA256Managed.cs
- Sequence.cs
- EntityDataSourceChangedEventArgs.cs
- RelatedCurrencyManager.cs
- TextEffect.cs
- ManagementBaseObject.cs
- DbSetClause.cs
- PropertyMap.cs
- MetadataArtifactLoaderCompositeFile.cs
- PtsCache.cs
- ViewGenerator.cs
- MenuTracker.cs
- FontCacheLogic.cs
- FeatureAttribute.cs
- XmlUtil.cs
- HMACSHA1.cs
- DbMetaDataFactory.cs
- PlainXmlSerializer.cs
- DataGridRelationshipRow.cs
- HtmlLink.cs
- MarkerProperties.cs
- MLangCodePageEncoding.cs
- BaseDataBoundControl.cs
- ListViewContainer.cs
- DesignerForm.cs
- WebPartAuthorizationEventArgs.cs
- ImpersonateTokenRef.cs
- Int32EqualityComparer.cs
- SortedList.cs
- KeyValueConfigurationCollection.cs
- PropertyValueUIItem.cs
- RSAPKCS1SignatureDeformatter.cs
- WebRequestModuleElement.cs
- FolderBrowserDialog.cs
- IApplicationTrustManager.cs
- StrongName.cs
- DefaultEventAttribute.cs
- ExternalDataExchangeService.cs
- WSHttpSecurity.cs
- HttpConfigurationContext.cs
- ContainerCodeDomSerializer.cs
- Preprocessor.cs
- QilUnary.cs
- DataBindingExpressionBuilder.cs