Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- StorageSetMapping.cs
- DataGridViewCellConverter.cs
- DictionaryManager.cs
- AutomationElementIdentifiers.cs
- TextInfo.cs
- MouseWheelEventArgs.cs
- SmiRecordBuffer.cs
- Intellisense.cs
- InputChannelBinder.cs
- DocumentViewerAutomationPeer.cs
- BinaryCommonClasses.cs
- ContainerAction.cs
- CompiledXpathExpr.cs
- ListViewHitTestInfo.cs
- XmlSchemaFacet.cs
- DBCommand.cs
- ObservableDictionary.cs
- FloaterParaClient.cs
- RangeValidator.cs
- InvokeAction.cs
- SiteMapHierarchicalDataSourceView.cs
- TableDetailsCollection.cs
- bidPrivateBase.cs
- VarInfo.cs
- DeviceSpecificChoiceCollection.cs
- ItemCheckedEvent.cs
- DataSysAttribute.cs
- File.cs
- CommandManager.cs
- AccessDataSourceView.cs
- EntitySetBaseCollection.cs
- WebScriptEnablingElement.cs
- ConfigurationSection.cs
- TableTextElementCollectionInternal.cs
- ListDictionaryInternal.cs
- HttpStaticObjectsCollectionBase.cs
- FormViewModeEventArgs.cs
- ObjectTag.cs
- Helpers.cs
- ScriptingWebServicesSectionGroup.cs
- DataFormats.cs
- DistributedTransactionPermission.cs
- OLEDB_Util.cs
- StatusBarAutomationPeer.cs
- Literal.cs
- SwitchElementsCollection.cs
- SimpleHandlerFactory.cs
- TrackingExtract.cs
- NotifyInputEventArgs.cs
- XMLSchema.cs
- SerializationException.cs
- HatchBrush.cs
- XsltException.cs
- LazyTextWriterCreator.cs
- NetworkInterface.cs
- ReadingWritingEntityEventArgs.cs
- NetDataContractSerializer.cs
- ComponentSerializationService.cs
- InertiaExpansionBehavior.cs
- MergablePropertyAttribute.cs
- Rijndael.cs
- InkSerializer.cs
- CurrencyWrapper.cs
- DataGridComboBoxColumn.cs
- PerformanceCountersElement.cs
- MemoryFailPoint.cs
- AmbientLight.cs
- KeyValueInternalCollection.cs
- InlineObject.cs
- SQLBoolean.cs
- GridViewCancelEditEventArgs.cs
- GeneralTransform3DTo2DTo3D.cs
- MouseButton.cs
- VisualTarget.cs
- MatrixUtil.cs
- SpeakProgressEventArgs.cs
- TextContainerChangeEventArgs.cs
- InkCanvasSelection.cs
- DataGridViewRow.cs
- FlowDecisionDesigner.xaml.cs
- StorageModelBuildProvider.cs
- PowerEase.cs
- FormView.cs
- TypeDelegator.cs
- MarkupObject.cs
- InsufficientMemoryException.cs
- SurrogateSelector.cs
- ThemeableAttribute.cs
- TextFormatterImp.cs
- FormViewActionList.cs
- XmlTypeMapping.cs
- UnsignedPublishLicense.cs
- PointLight.cs
- GAC.cs
- SafePEFileHandle.cs
- CompiledQueryCacheKey.cs
- AxisAngleRotation3D.cs
- ParserStreamGeometryContext.cs
- MetadataArtifactLoader.cs
- SqlCachedBuffer.cs