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
- PartialCachingAttribute.cs
- Animatable.cs
- Padding.cs
- ListViewGroupConverter.cs
- OutOfProcStateClientManager.cs
- ActiveXHelper.cs
- CalculatedColumn.cs
- SemaphoreFullException.cs
- Clock.cs
- ResXBuildProvider.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DbDataSourceEnumerator.cs
- SingleAnimationBase.cs
- OracleRowUpdatedEventArgs.cs
- TemplateKey.cs
- ModelItemCollectionImpl.cs
- Schedule.cs
- ButtonFieldBase.cs
- Pool.cs
- OrderPreservingPipeliningSpoolingTask.cs
- StorageScalarPropertyMapping.cs
- WindowsScrollBarBits.cs
- CssStyleCollection.cs
- RectAnimationClockResource.cs
- ErrorFormatter.cs
- QuaternionKeyFrameCollection.cs
- MessageQueue.cs
- GlyphElement.cs
- CodeAttributeArgumentCollection.cs
- Error.cs
- RandomNumberGenerator.cs
- DetailsViewDeletedEventArgs.cs
- PersonalizationStateInfoCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ServiceErrorHandler.cs
- ButtonBaseAutomationPeer.cs
- CmsInterop.cs
- CheckedPointers.cs
- SmiMetaData.cs
- RootBrowserWindowProxy.cs
- DragEventArgs.cs
- SerializerWriterEventHandlers.cs
- StylusCollection.cs
- RawMouseInputReport.cs
- DbConnectionOptions.cs
- RotateTransform.cs
- HtmlTableCellCollection.cs
- CellIdBoolean.cs
- ListViewDeletedEventArgs.cs
- TextRangeBase.cs
- ManualResetEvent.cs
- Model3DCollection.cs
- BitVector32.cs
- CharUnicodeInfo.cs
- MatrixTransform.cs
- HandleRef.cs
- IdSpace.cs
- OleDbSchemaGuid.cs
- cache.cs
- ContainsSearchOperator.cs
- _KerberosClient.cs
- XhtmlBasicPhoneCallAdapter.cs
- XmlElementElement.cs
- Pair.cs
- PenThreadWorker.cs
- Matrix3D.cs
- HttpServerChannel.cs
- DialogWindow.cs
- Empty.cs
- infer.cs
- _LoggingObject.cs
- ControlCollection.cs
- WinInet.cs
- ResourceReferenceExpressionConverter.cs
- ProgressPage.cs
- ConvertBinder.cs
- NoPersistHandle.cs
- DateTimeSerializationSection.cs
- EDesignUtil.cs
- EventMappingSettingsCollection.cs
- WindowsHyperlink.cs
- Guid.cs
- DiscreteKeyFrames.cs
- FaultContractInfo.cs
- Membership.cs
- BoundPropertyEntry.cs
- WebServiceData.cs
- XsdBuilder.cs
- WrapperEqualityComparer.cs
- MasterPageCodeDomTreeGenerator.cs
- Msec.cs
- CodeAccessPermission.cs
- WindowsBrush.cs
- CallContext.cs
- IChannel.cs
- CapabilitiesUse.cs
- SizeIndependentAnimationStorage.cs
- DelegateCompletionCallbackWrapper.cs
- SecurityPermission.cs
- AttributeUsageAttribute.cs