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
- DataError.cs
- ToolBar.cs
- OpacityConverter.cs
- ArrangedElement.cs
- SafeNativeMethods.cs
- Brush.cs
- UntypedNullExpression.cs
- TdsParserStaticMethods.cs
- XmlElementAttribute.cs
- GeneralTransform3D.cs
- HebrewCalendar.cs
- ParameterElementCollection.cs
- SingleStorage.cs
- SqlConnectionPoolProviderInfo.cs
- X509SubjectKeyIdentifierClause.cs
- HtmlWindowCollection.cs
- PolicyStatement.cs
- UIElement3D.cs
- NotifyIcon.cs
- FileInfo.cs
- clipboard.cs
- Win32SafeHandles.cs
- BinaryUtilClasses.cs
- PreProcessor.cs
- ListViewEditEventArgs.cs
- WebRequest.cs
- ControlBuilder.cs
- ArrayWithOffset.cs
- XpsPackagingException.cs
- PointUtil.cs
- TypeDelegator.cs
- Rotation3DAnimation.cs
- DeflateStream.cs
- InternalResources.cs
- BitmapEffectInput.cs
- FieldInfo.cs
- OperationBehaviorAttribute.cs
- TextOutput.cs
- PanelContainerDesigner.cs
- DesignerActionPropertyItem.cs
- DrawListViewColumnHeaderEventArgs.cs
- QilTernary.cs
- AssociationType.cs
- Positioning.cs
- wgx_exports.cs
- UnmanagedMemoryStream.cs
- MatrixAnimationUsingPath.cs
- ImageMap.cs
- PingOptions.cs
- Volatile.cs
- HttpModuleAction.cs
- CompositeControlDesigner.cs
- SimpleApplicationHost.cs
- Random.cs
- MessageSecurityVersionConverter.cs
- InteropDesigner.xaml.cs
- PenLineJoinValidation.cs
- Comparer.cs
- RuntimeDelegateArgument.cs
- XmlAttributeAttribute.cs
- Group.cs
- Line.cs
- _DomainName.cs
- InsufficientMemoryException.cs
- IFlowDocumentViewer.cs
- HMACRIPEMD160.cs
- Stopwatch.cs
- ScaleTransform3D.cs
- TextAnchor.cs
- LiteralControl.cs
- ResourceExpression.cs
- SecurityChannel.cs
- ArgumentOutOfRangeException.cs
- RoutedCommand.cs
- CorrelationQuery.cs
- RequestCachingSection.cs
- DebugController.cs
- KerberosTicketHashIdentifierClause.cs
- WindowsContainer.cs
- AppDomainFactory.cs
- WebPartZoneDesigner.cs
- Menu.cs
- Mutex.cs
- RevocationPoint.cs
- EventWaitHandleSecurity.cs
- BasicDesignerLoader.cs
- ParameterRetriever.cs
- TextRangeEdit.cs
- SqlStream.cs
- TdsEnums.cs
- XmlAttributes.cs
- DocumentGridPage.cs
- MouseActionValueSerializer.cs
- CachingHintValidation.cs
- DataTemplateKey.cs
- ProjectionCamera.cs
- WindowsStreamSecurityBindingElement.cs
- MarginsConverter.cs
- IgnoreFileBuildProvider.cs
- ProviderCollection.cs