Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ContextActivityUtils.cs
- TypeCollectionDesigner.xaml.cs
- XmlUtf8RawTextWriter.cs
- UnsafeNativeMethodsTablet.cs
- AssemblyAttributes.cs
- ContainerUtilities.cs
- DesigntimeLicenseContextSerializer.cs
- PublishLicense.cs
- ExpressionVisitor.cs
- EntityCommandExecutionException.cs
- ResourcesBuildProvider.cs
- HtmlInputSubmit.cs
- MaskedTextBoxTextEditorDropDown.cs
- RequestResizeEvent.cs
- DataTableNameHandler.cs
- FixedSOMContainer.cs
- TreeNode.cs
- HtmlDocument.cs
- ControlType.cs
- ValidationEventArgs.cs
- Perspective.cs
- HandlerFactoryCache.cs
- ObjectParameter.cs
- EdgeProfileValidation.cs
- Cloud.cs
- MissingFieldException.cs
- BaseCodeDomTreeGenerator.cs
- PermissionSet.cs
- NegatedConstant.cs
- QuaternionRotation3D.cs
- GridViewUpdatedEventArgs.cs
- AccessViolationException.cs
- ColumnMapVisitor.cs
- DeclarativeCatalogPart.cs
- _IPv4Address.cs
- UMPAttributes.cs
- dataprotectionpermission.cs
- WebContext.cs
- ComponentEditorPage.cs
- SqlBuffer.cs
- ThreadStartException.cs
- SqlCaseSimplifier.cs
- XmlSchemaSimpleTypeUnion.cs
- OrderedDictionaryStateHelper.cs
- X509ChainPolicy.cs
- UInt32Converter.cs
- _RegBlobWebProxyDataBuilder.cs
- ResourceExpressionEditorSheet.cs
- RoutingUtilities.cs
- InternalTypeHelper.cs
- Axis.cs
- ElementHostAutomationPeer.cs
- ConnectionStringSettings.cs
- DependencyPropertyValueSerializer.cs
- TableHeaderCell.cs
- RelationshipConverter.cs
- PropertyInformationCollection.cs
- StyleXamlTreeBuilder.cs
- HtmlGenericControl.cs
- WindowAutomationPeer.cs
- TransformedBitmap.cs
- WebHttpBindingElement.cs
- SizeConverter.cs
- InstanceOwner.cs
- Translator.cs
- NullReferenceException.cs
- XmlDataSourceNodeDescriptor.cs
- CredentialCache.cs
- DataGrid.cs
- ModulesEntry.cs
- CounterCreationDataConverter.cs
- TrackingServices.cs
- BindingRestrictions.cs
- ConstantProjectedSlot.cs
- TemplatedMailWebEventProvider.cs
- OleDbConnectionInternal.cs
- ObjectRef.cs
- Message.cs
- ProcessHostServerConfig.cs
- FormClosingEvent.cs
- CodeTypeOfExpression.cs
- UTF7Encoding.cs
- Rotation3DAnimationBase.cs
- AutomationAttributeInfo.cs
- UIElementHelper.cs
- SiteIdentityPermission.cs
- DictionarySectionHandler.cs
- Double.cs
- FamilyTypefaceCollection.cs
- ForEach.cs
- ActiveXHost.cs
- ClientScriptManagerWrapper.cs
- CommonDialog.cs
- Timeline.cs
- XPathBinder.cs
- ProcessHost.cs
- ModelItemCollection.cs
- CustomErrorsSectionWrapper.cs
- StringToken.cs
- PathSegment.cs