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
- MultilineStringConverter.cs
- FunctionImportElement.cs
- PriorityItem.cs
- PassportAuthenticationModule.cs
- DataControlPagerLinkButton.cs
- FactoryGenerator.cs
- StorageRoot.cs
- NumberFunctions.cs
- DataStreams.cs
- TypeLoadException.cs
- SapiRecoContext.cs
- IdentifierService.cs
- DeclarationUpdate.cs
- CodeAccessSecurityEngine.cs
- JapaneseLunisolarCalendar.cs
- SpecularMaterial.cs
- SerializationInfo.cs
- RemotingAttributes.cs
- Emitter.cs
- Section.cs
- SqlTrackingService.cs
- VectorAnimation.cs
- MailWebEventProvider.cs
- ToolTipService.cs
- ContentIterators.cs
- dsa.cs
- __FastResourceComparer.cs
- GridPatternIdentifiers.cs
- ToolStripRendererSwitcher.cs
- TextRangeEditLists.cs
- CompilerCollection.cs
- SqlDataSourceCommandEventArgs.cs
- AutoScrollHelper.cs
- Misc.cs
- BaseHashHelper.cs
- WindowsPrincipal.cs
- WhitespaceRule.cs
- DefinitionBase.cs
- VerticalAlignConverter.cs
- _DigestClient.cs
- Form.cs
- PersonalizationStateQuery.cs
- SoapSchemaImporter.cs
- SqlFunctionAttribute.cs
- ShortcutKeysEditor.cs
- ResourceAssociationSet.cs
- ProviderMetadataCachedInformation.cs
- SystemIPInterfaceProperties.cs
- BindingOperations.cs
- QilScopedVisitor.cs
- WmfPlaceableFileHeader.cs
- PersonalizationState.cs
- NativeRecognizer.cs
- BaseTemplateParser.cs
- XmlSchemaNotation.cs
- XomlCompiler.cs
- cryptoapiTransform.cs
- NotifyIcon.cs
- MatchingStyle.cs
- PenLineJoinValidation.cs
- MultitargetingHelpers.cs
- SchemaImporterExtension.cs
- DocumentXmlWriter.cs
- PathFigureCollectionConverter.cs
- TextBounds.cs
- ToolStripItem.cs
- LocalFileSettingsProvider.cs
- ListViewDeleteEventArgs.cs
- SingleObjectCollection.cs
- Evaluator.cs
- AutomationElementCollection.cs
- FileFormatException.cs
- TextSelectionHighlightLayer.cs
- StringConcat.cs
- SqlFactory.cs
- MeshGeometry3D.cs
- HttpClientCertificate.cs
- XmlCharType.cs
- graph.cs
- GraphicsContext.cs
- COAUTHIDENTITY.cs
- DataRecord.cs
- TraceHwndHost.cs
- ProfileSettings.cs
- panel.cs
- TraceHandlerErrorFormatter.cs
- TransformGroup.cs
- NetworkInterface.cs
- DataBoundControlAdapter.cs
- ListDesigner.cs
- UndoManager.cs
- ScopedKnownTypes.cs
- loginstatus.cs
- GridViewSortEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- StateBag.cs
- PageEventArgs.cs
- PerfService.cs
- TextBoxBaseDesigner.cs
- CssClassPropertyAttribute.cs