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
- ServiceReference.cs
- SecurityPermission.cs
- PaperSource.cs
- SecurityKeyIdentifierClause.cs
- WmiEventSink.cs
- StandardCommandToolStripMenuItem.cs
- StateMachineSubscriptionManager.cs
- PropertyCondition.cs
- CodeDOMUtility.cs
- DataServiceBuildProvider.cs
- ZoneIdentityPermission.cs
- LZCodec.cs
- HostedTcpTransportManager.cs
- sqlser.cs
- OleDbConnection.cs
- BaseDataListActionList.cs
- PerformanceCounterManager.cs
- NeutralResourcesLanguageAttribute.cs
- QueryStatement.cs
- PerfCounters.cs
- XmlIlGenerator.cs
- ComponentDispatcherThread.cs
- TraceContextEventArgs.cs
- HttpApplication.cs
- HandleDictionary.cs
- DesignerPainter.cs
- SchemaName.cs
- ContainsRowNumberChecker.cs
- TemplateBindingExtension.cs
- SystemIPInterfaceProperties.cs
- HttpInputStream.cs
- FontCollection.cs
- MenuCommandsChangedEventArgs.cs
- WebBrowsableAttribute.cs
- HierarchicalDataBoundControl.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DbConnectionPoolCounters.cs
- GeneralTransform.cs
- ListViewGroupCollectionEditor.cs
- HttpHandlerActionCollection.cs
- IssuedTokenClientBehaviorsElement.cs
- Point.cs
- WeakHashtable.cs
- RepeatButton.cs
- Pen.cs
- ProvidePropertyAttribute.cs
- DataGridViewRowHeaderCell.cs
- XamlWriterExtensions.cs
- DataGridViewCellCollection.cs
- StyleXamlTreeBuilder.cs
- RegexMatch.cs
- XmlUnspecifiedAttribute.cs
- TreeNodeSelectionProcessor.cs
- DbMetaDataFactory.cs
- DLinqTableProvider.cs
- Rules.cs
- BamlCollectionHolder.cs
- SmiMetaData.cs
- Resources.Designer.cs
- BamlBinaryWriter.cs
- WpfPayload.cs
- AttachedPropertyMethodSelector.cs
- NegationPusher.cs
- SqlRowUpdatedEvent.cs
- TextParagraphCache.cs
- TemplatePropertyEntry.cs
- SelectorItemAutomationPeer.cs
- LambdaCompiler.Expressions.cs
- XmlILStorageConverter.cs
- XPathScanner.cs
- HttpRuntime.cs
- ApplicationDirectory.cs
- Form.cs
- ThreadStaticAttribute.cs
- GridItemCollection.cs
- smtpconnection.cs
- XamlFilter.cs
- TextTreeTextNode.cs
- MetadataUtilsSmi.cs
- Bits.cs
- NullableFloatSumAggregationOperator.cs
- MultiplexingFormatMapping.cs
- ZeroOpNode.cs
- WebMessageBodyStyleHelper.cs
- EditorPart.cs
- PermissionRequestEvidence.cs
- SeverityFilter.cs
- HeaderUtility.cs
- ResourceExpressionBuilder.cs
- ConfigurationCollectionAttribute.cs
- DesignerActionUIStateChangeEventArgs.cs
- BookmarkEventArgs.cs
- QilVisitor.cs
- HTTPNotFoundHandler.cs
- DefaultValueAttribute.cs
- SerializerWriterEventHandlers.cs
- SmtpAuthenticationManager.cs
- FontUnitConverter.cs
- AppDomainFactory.cs
- GridPattern.cs