Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceDescriptionAttribute.cs / 1 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [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 = AtlasWeb.ResourceManager.GetString(_descriptionResourceName, AtlasWeb.Culture); } return base.Description; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [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 = AtlasWeb.ResourceManager.GetString(_descriptionResourceName, AtlasWeb.Culture); } 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
- ReflectionHelper.cs
- LinkLabelLinkClickedEvent.cs
- CommandBindingCollection.cs
- activationcontext.cs
- SqlDataSourceQueryEditor.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- BmpBitmapDecoder.cs
- RtfNavigator.cs
- Section.cs
- SqlGenericUtil.cs
- DecodeHelper.cs
- FormViewInsertEventArgs.cs
- SuppressIldasmAttribute.cs
- DataErrorValidationRule.cs
- HelpEvent.cs
- SqlAggregateChecker.cs
- WebConfigurationHostFileChange.cs
- IDReferencePropertyAttribute.cs
- RenderOptions.cs
- Vector3D.cs
- QuaternionAnimation.cs
- HierarchicalDataTemplate.cs
- TimeSpanOrInfiniteConverter.cs
- RadioButton.cs
- PropertyInfoSet.cs
- WebServiceBindingAttribute.cs
- WinEventTracker.cs
- ProviderUtil.cs
- TypeTypeConverter.cs
- XmlSchemaSequence.cs
- FontDialog.cs
- DatagridviewDisplayedBandsData.cs
- KeyProperty.cs
- NativeRecognizer.cs
- InOutArgument.cs
- NotCondition.cs
- LinkUtilities.cs
- RangeValidator.cs
- SqlOuterApplyReducer.cs
- ContentFileHelper.cs
- Match.cs
- DataControlFieldCollection.cs
- PermissionListSet.cs
- FreeFormDesigner.cs
- CustomAttributeSerializer.cs
- PersonalizableTypeEntry.cs
- Attributes.cs
- SQLInt32.cs
- EntityStoreSchemaFilterEntry.cs
- RepeaterItemEventArgs.cs
- GenericEnumConverter.cs
- ProtocolElement.cs
- FormsAuthenticationTicket.cs
- ToolZone.cs
- RequestQueryParser.cs
- ListControl.cs
- DESCryptoServiceProvider.cs
- CookielessHelper.cs
- PropertyGridView.cs
- LineProperties.cs
- Axis.cs
- Axis.cs
- UnSafeCharBuffer.cs
- DesignerProperties.cs
- BufferModeSettings.cs
- AdRotatorDesigner.cs
- Context.cs
- RsaSecurityToken.cs
- UpdateManifestForBrowserApplication.cs
- TextTreeUndoUnit.cs
- TimeoutException.cs
- ListSourceHelper.cs
- PrimitiveDataContract.cs
- CompressionTransform.cs
- ExtentKey.cs
- TextEndOfSegment.cs
- OutputScope.cs
- XsdDateTime.cs
- MediaTimeline.cs
- XPathNodePointer.cs
- XmlILTrace.cs
- FunctionDetailsReader.cs
- LineServicesRun.cs
- IImplicitResourceProvider.cs
- ErrorFormatterPage.cs
- HasCopySemanticsAttribute.cs
- ViewBase.cs
- LinkClickEvent.cs
- AbstractSvcMapFileLoader.cs
- XsltInput.cs
- SchemaAttDef.cs
- TreeNodeCollection.cs
- TextEditorParagraphs.cs
- RegularExpressionValidator.cs
- StringResourceManager.cs
- Hash.cs
- AlternateViewCollection.cs
- Buffer.cs
- DataGridViewDesigner.cs
- ResourceFallbackManager.cs