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
- Splitter.cs
- ToolboxItemImageConverter.cs
- CachedTypeface.cs
- SqlInfoMessageEvent.cs
- HopperCache.cs
- Events.cs
- XPathPatternParser.cs
- Method.cs
- NativeMethods.cs
- WebRequest.cs
- UpDownBase.cs
- IntPtr.cs
- ConfigurationPropertyAttribute.cs
- TablePatternIdentifiers.cs
- CustomAttribute.cs
- TrackingProfileSerializer.cs
- LinkConverter.cs
- CompositeScriptReference.cs
- SignatureHelper.cs
- ConfigXmlText.cs
- SqlExpander.cs
- SerializationStore.cs
- TextCompositionEventArgs.cs
- MetaTable.cs
- Control.cs
- HtmlTextArea.cs
- Viewport3DVisual.cs
- AttributeCollection.cs
- TdsEnums.cs
- XNodeSchemaApplier.cs
- NonParentingControl.cs
- Attribute.cs
- LongValidator.cs
- InkCanvasAutomationPeer.cs
- UnsafeNetInfoNativeMethods.cs
- ValidationRuleCollection.cs
- ListItemCollection.cs
- SelectionPattern.cs
- CompilerTypeWithParams.cs
- EmptyQuery.cs
- GridToolTip.cs
- WebPartEditVerb.cs
- IndicCharClassifier.cs
- ToolStripDropDownItemDesigner.cs
- ConcurrentDictionary.cs
- DataConnectionHelper.cs
- XmlAttributeCollection.cs
- StrokeSerializer.cs
- RpcResponse.cs
- SqlCrossApplyToCrossJoin.cs
- ListDictionary.cs
- CultureTable.cs
- EnumMember.cs
- SqlDataSourceView.cs
- filewebrequest.cs
- MouseBinding.cs
- WindowsEditBoxRange.cs
- WorkflowInstanceExtensionProvider.cs
- DesignerOptionService.cs
- ConfigDefinitionUpdates.cs
- baseaxisquery.cs
- WebBrowserNavigatingEventHandler.cs
- ElasticEase.cs
- LicenseProviderAttribute.cs
- CrossContextChannel.cs
- EditorZoneAutoFormat.cs
- LinearQuaternionKeyFrame.cs
- TCEAdapterGenerator.cs
- Control.cs
- ColorTranslator.cs
- ConnectionString.cs
- DocobjHost.cs
- DataSourceControlBuilder.cs
- ComponentSerializationService.cs
- DesignerActionVerbItem.cs
- LinearGradientBrush.cs
- FontFamilyConverter.cs
- AsyncContentLoadedEventArgs.cs
- Timeline.cs
- ProfileProvider.cs
- DeadLetterQueue.cs
- ReliableRequestSessionChannel.cs
- FutureFactory.cs
- QilReplaceVisitor.cs
- ThemeableAttribute.cs
- SymmetricSecurityProtocolFactory.cs
- HybridWebProxyFinder.cs
- OLEDB_Util.cs
- ItemCheckEvent.cs
- MultipartContentParser.cs
- XmlAttributeOverrides.cs
- IIS7UserPrincipal.cs
- AuthenticationConfig.cs
- WmlLabelAdapter.cs
- OptimizedTemplateContentHelper.cs
- CacheMemory.cs
- basevalidator.cs
- CollectionsUtil.cs
- Transform3D.cs
- HtmlControlPersistable.cs