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
- TextParagraph.cs
- UpDownEvent.cs
- _FtpControlStream.cs
- ScriptReference.cs
- Preprocessor.cs
- HandlerMappingMemo.cs
- SystemIPAddressInformation.cs
- Compiler.cs
- DataSet.cs
- UpdateTracker.cs
- SqlDependency.cs
- AuthorizationRuleCollection.cs
- SafeRightsManagementEnvironmentHandle.cs
- ClientRuntimeConfig.cs
- BitmapEffect.cs
- LocalsItemDescription.cs
- WebServiceTypeData.cs
- Console.cs
- WhitespaceSignificantCollectionAttribute.cs
- SqlCacheDependency.cs
- TextOnlyOutput.cs
- FullTextState.cs
- HandleRef.cs
- Bitmap.cs
- SqlNotificationEventArgs.cs
- XmlDocumentFragment.cs
- IntSecurity.cs
- PaintValueEventArgs.cs
- Line.cs
- ToolStripLocationCancelEventArgs.cs
- DtdParser.cs
- SQLChars.cs
- StrokeNodeData.cs
- _NestedSingleAsyncResult.cs
- Menu.cs
- TextProviderWrapper.cs
- SQLInt16.cs
- SoapAttributeOverrides.cs
- GACIdentityPermission.cs
- PrintDialog.cs
- ResXResourceReader.cs
- DiagnosticTrace.cs
- TreeNodeCollection.cs
- QuadraticBezierSegment.cs
- _LocalDataStore.cs
- MembershipAdapter.cs
- SafeLocalAllocation.cs
- HtmlElement.cs
- FileUpload.cs
- SafeThreadHandle.cs
- Listbox.cs
- DesignerCategoryAttribute.cs
- FixedStringLookup.cs
- KeyTime.cs
- AbstractExpressions.cs
- TextMetrics.cs
- EdmValidator.cs
- GeneralTransformCollection.cs
- MultiPageTextView.cs
- ProgressiveCrcCalculatingStream.cs
- LinkedResource.cs
- KnownBoxes.cs
- NullableConverter.cs
- Vector3DCollectionConverter.cs
- HtmlImage.cs
- SerialPinChanges.cs
- Dispatcher.cs
- ImageBrush.cs
- XPathChildIterator.cs
- Win32.cs
- ProcessModule.cs
- AnnotationResourceCollection.cs
- ToolZone.cs
- StrongNameHelpers.cs
- VirtualizingPanel.cs
- WrapPanel.cs
- Directory.cs
- RowVisual.cs
- UserNamePasswordValidator.cs
- AudioLevelUpdatedEventArgs.cs
- ProxySimple.cs
- Int32AnimationBase.cs
- EncryptedKey.cs
- RegexRunnerFactory.cs
- XmlIgnoreAttribute.cs
- Bind.cs
- TableSectionStyle.cs
- IPGlobalProperties.cs
- NativeMethods.cs
- LayoutManager.cs
- XmlSerializerImportOptions.cs
- OrderablePartitioner.cs
- ExtensibleClassFactory.cs
- ToolStripRenderer.cs
- Pkcs9Attribute.cs
- TableLayoutSettings.cs
- DragEventArgs.cs
- Int16Storage.cs
- DeferredReference.cs
- PrinterResolution.cs