Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ResourceDescriptionAttribute.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowOperationFault.cs
- HGlobalSafeHandle.cs
- Int16Storage.cs
- SerializationInfoEnumerator.cs
- OleDbPropertySetGuid.cs
- SubMenuStyle.cs
- RouteItem.cs
- Console.cs
- TextAdaptor.cs
- IssuedTokenParametersElement.cs
- StringResourceManager.cs
- BoundPropertyEntry.cs
- ButtonFlatAdapter.cs
- MetadataArtifactLoader.cs
- DictionaryGlobals.cs
- NullReferenceException.cs
- TableLayoutPanelDesigner.cs
- WebServiceResponseDesigner.cs
- TextLineResult.cs
- FeatureAttribute.cs
- ControlBuilderAttribute.cs
- XslCompiledTransform.cs
- FactoryRecord.cs
- RegexCompilationInfo.cs
- TextElement.cs
- ControlDesigner.cs
- WebPartCatalogCloseVerb.cs
- TemplatePartAttribute.cs
- WebPartTransformerAttribute.cs
- TextPointer.cs
- AsyncStreamReader.cs
- Processor.cs
- TextRange.cs
- _Events.cs
- DSASignatureFormatter.cs
- StartUpEventArgs.cs
- OrderByQueryOptionExpression.cs
- GeneralTransform3DCollection.cs
- WeakEventTable.cs
- LabelAutomationPeer.cs
- CollectionViewGroup.cs
- Drawing.cs
- RestHandler.cs
- OpenTypeLayout.cs
- CharUnicodeInfo.cs
- InputReport.cs
- Menu.cs
- BufferedStream.cs
- ChameleonKey.cs
- TextTreeRootTextBlock.cs
- RowsCopiedEventArgs.cs
- securitycriticaldataClass.cs
- smtpconnection.cs
- IfAction.cs
- DeploymentExceptionMapper.cs
- GPRECT.cs
- Subtree.cs
- PeekCompletedEventArgs.cs
- ACL.cs
- HyperLinkField.cs
- ReadOnlyHierarchicalDataSource.cs
- DataService.cs
- HMACSHA384.cs
- TransformerTypeCollection.cs
- _SpnDictionary.cs
- CommandHelpers.cs
- PhysicalFontFamily.cs
- XMLDiffLoader.cs
- Button.cs
- Token.cs
- ProjectionPathSegment.cs
- Simplifier.cs
- DrawingAttributeSerializer.cs
- FlowLayoutPanel.cs
- _Win32.cs
- LessThan.cs
- WebPartUserCapability.cs
- SecondaryViewProvider.cs
- KeySplineConverter.cs
- FormViewInsertEventArgs.cs
- RegexGroupCollection.cs
- ReservationNotFoundException.cs
- ClaimSet.cs
- DataGridViewCheckBoxCell.cs
- FormViewUpdatedEventArgs.cs
- Camera.cs
- XPathEmptyIterator.cs
- HttpResponse.cs
- InfiniteIntConverter.cs
- WebPartTracker.cs
- AtlasWeb.Designer.cs
- TransformProviderWrapper.cs
- RijndaelManagedTransform.cs
- AccessKeyManager.cs
- DateTimeOffsetStorage.cs
- EDesignUtil.cs
- DataGridViewTopLeftHeaderCell.cs
- UnknownWrapper.cs
- FixedPosition.cs
- ResourceAttributes.cs