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
- FontResourceCache.cs
- ProtocolsConfiguration.cs
- OutOfProcStateClientManager.cs
- ElementNotAvailableException.cs
- DataColumn.cs
- StringComparer.cs
- TagNameToTypeMapper.cs
- SystemIPv6InterfaceProperties.cs
- XmlSerializableServices.cs
- TextSelectionProcessor.cs
- TextBoxAutomationPeer.cs
- RegexMatchCollection.cs
- Scene3D.cs
- LocationUpdates.cs
- ReflectionTypeLoadException.cs
- InputDevice.cs
- SystemTcpConnection.cs
- DataKeyCollection.cs
- ContainerUIElement3D.cs
- Parameter.cs
- EntityConnectionStringBuilder.cs
- EventEntry.cs
- ControlPropertyNameConverter.cs
- Invariant.cs
- TextParagraph.cs
- DesignerInterfaces.cs
- IPAddressCollection.cs
- SubclassTypeValidatorAttribute.cs
- TraceSection.cs
- ProjectedSlot.cs
- JsonCollectionDataContract.cs
- ManipulationInertiaStartingEventArgs.cs
- InvokePattern.cs
- OutOfMemoryException.cs
- TypeDescriptor.cs
- SyntaxCheck.cs
- UrlPath.cs
- Translator.cs
- JsonFormatWriterGenerator.cs
- SqlDataSourceView.cs
- BamlTreeNode.cs
- Cursors.cs
- MsmqTransportBindingElement.cs
- AccessKeyManager.cs
- ProtectedConfiguration.cs
- ReliableInputConnection.cs
- DiscoveryClientDocuments.cs
- GroupBoxAutomationPeer.cs
- XmlSiteMapProvider.cs
- DocumentPageViewAutomationPeer.cs
- ProxyGenerationError.cs
- ExpressionEditorAttribute.cs
- WebPartRestoreVerb.cs
- SqlStream.cs
- EventArgs.cs
- DrawingState.cs
- RawMouseInputReport.cs
- TextEditorLists.cs
- NamedPipeChannelListener.cs
- StylusPointPropertyInfoDefaults.cs
- Int32Animation.cs
- SafeNativeMethods.cs
- MultiAsyncResult.cs
- XmlText.cs
- XmlUrlResolver.cs
- SHA256Managed.cs
- XmlExceptionHelper.cs
- QilXmlWriter.cs
- TextViewBase.cs
- BitmapEffectState.cs
- CheckBoxField.cs
- FlowDocumentView.cs
- counter.cs
- LinkLabelLinkClickedEvent.cs
- CreateUserWizard.cs
- TextParentUndoUnit.cs
- ToolStripContainer.cs
- Form.cs
- ComponentResourceKey.cs
- Stylus.cs
- X509CertificateCollection.cs
- FlowLayoutPanel.cs
- IntegerCollectionEditor.cs
- XhtmlTextWriter.cs
- InvalidPropValue.cs
- ObfuscateAssemblyAttribute.cs
- NetStream.cs
- ValidationEventArgs.cs
- UnsafeNativeMethods.cs
- SplitterEvent.cs
- TreeNodeBindingCollection.cs
- SqlParameterCollection.cs
- ThicknessConverter.cs
- Message.cs
- TextRangeEditLists.cs
- ClientSideQueueItem.cs
- InfoCard.cs
- SpanIndex.cs
- DbMetaDataCollectionNames.cs
- ConnectionPool.cs