Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HtmlInputRadioButton.cs
- DynamicField.cs
- SystemPens.cs
- TableLayout.cs
- StoreItemCollection.Loader.cs
- NotifyParentPropertyAttribute.cs
- PcmConverter.cs
- SortDescription.cs
- XmlSchema.cs
- SoapHelper.cs
- ConfigurationConverterBase.cs
- BasicViewGenerator.cs
- TextServicesDisplayAttributePropertyRanges.cs
- PropagatorResult.cs
- KoreanCalendar.cs
- COAUTHINFO.cs
- FragmentQueryKB.cs
- TextProviderWrapper.cs
- UpdatePanelTriggerCollection.cs
- EdmConstants.cs
- Item.cs
- FlagsAttribute.cs
- DynamicResourceExtensionConverter.cs
- WmlPageAdapter.cs
- SeekStoryboard.cs
- DesignTimeHTMLTextWriter.cs
- GlyphRunDrawing.cs
- GridEntryCollection.cs
- CacheEntry.cs
- DesignerSerializerAttribute.cs
- XmlIterators.cs
- SecurityContextTokenCache.cs
- HtmlElementEventArgs.cs
- DATA_BLOB.cs
- HelpInfo.cs
- IProvider.cs
- FixedStringLookup.cs
- DataGridTextBox.cs
- Helpers.cs
- QueryIntervalOp.cs
- ParameterElementCollection.cs
- InstalledFontCollection.cs
- ClientTargetCollection.cs
- SqlTypesSchemaImporter.cs
- Paragraph.cs
- Content.cs
- EdmToObjectNamespaceMap.cs
- AggregateNode.cs
- SafeRightsManagementHandle.cs
- CommandDevice.cs
- DesignerActionUI.cs
- x509store.cs
- PropertyMap.cs
- _HTTPDateParse.cs
- FilterQuery.cs
- BinaryWriter.cs
- ClientEndpointLoader.cs
- EventLogEntry.cs
- CancellationHandlerDesigner.cs
- MapPathBasedVirtualPathProvider.cs
- PseudoWebRequest.cs
- SystemDiagnosticsSection.cs
- MenuItemBindingCollection.cs
- UInt64Converter.cs
- TypedColumnHandler.cs
- RuleSetReference.cs
- LogEntry.cs
- BCLDebug.cs
- WeakReferenceList.cs
- TransformerInfo.cs
- SimpleLine.cs
- ApplicationActivator.cs
- KeyedByTypeCollection.cs
- SoapHeaders.cs
- ManualWorkflowSchedulerService.cs
- OneOf.cs
- RedistVersionInfo.cs
- UdpChannelListener.cs
- SafeNativeMethodsCLR.cs
- CFGGrammar.cs
- XmlEnumAttribute.cs
- SystemResources.cs
- WindowPattern.cs
- TreeViewHitTestInfo.cs
- CallTemplateAction.cs
- ScriptResourceHandler.cs
- DocumentPaginator.cs
- PasswordValidationException.cs
- ModelPerspective.cs
- PropertyValueUIItem.cs
- Converter.cs
- TextEffect.cs
- ZipIOExtraFieldZip64Element.cs
- EntityDesignerBuildProvider.cs
- XmlDownloadManager.cs
- EntityContainer.cs
- isolationinterop.cs
- WebPartActionVerb.cs
- ContractReference.cs
- FileChangeNotifier.cs