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
- DeflateStreamAsyncResult.cs
- TraceContextEventArgs.cs
- FontSource.cs
- MediaPlayerState.cs
- SerialStream.cs
- ContentType.cs
- SystemFonts.cs
- FontDifferentiator.cs
- SafeHandles.cs
- ConnectionManager.cs
- XPathNavigatorKeyComparer.cs
- TableStyle.cs
- ObjectList.cs
- BaseCollection.cs
- StreamWriter.cs
- KeyTimeConverter.cs
- HMACSHA384.cs
- VirtualPathUtility.cs
- ProviderUtil.cs
- DeferredTextReference.cs
- AdornerHitTestResult.cs
- Select.cs
- RequestQueue.cs
- CallbackException.cs
- TextureBrush.cs
- ChangeBlockUndoRecord.cs
- CodeIdentifier.cs
- DecoderFallbackWithFailureFlag.cs
- TransformerTypeCollection.cs
- Adorner.cs
- TemplateBindingExtension.cs
- BufferAllocator.cs
- OdbcHandle.cs
- Scene3D.cs
- ProcessModelSection.cs
- CompositeActivityCodeGenerator.cs
- FrameworkReadOnlyPropertyMetadata.cs
- externdll.cs
- _ServiceNameStore.cs
- DataGridViewRowPrePaintEventArgs.cs
- WebPartVerb.cs
- DataSetViewSchema.cs
- DataGridViewSelectedCellCollection.cs
- CodeGenerator.cs
- ApplicationInfo.cs
- NoClickablePointException.cs
- SerializationFieldInfo.cs
- LinkLabelLinkClickedEvent.cs
- BamlRecordHelper.cs
- TextReader.cs
- ListSurrogate.cs
- IBuiltInEvidence.cs
- SafeLibraryHandle.cs
- FixedDocumentPaginator.cs
- BaseParagraph.cs
- RelationshipConverter.cs
- GreenMethods.cs
- CacheChildrenQuery.cs
- XmlToDatasetMap.cs
- ShaderRenderModeValidation.cs
- DocumentGridContextMenu.cs
- StringComparer.cs
- TextMetrics.cs
- GeneralTransform3DTo2DTo3D.cs
- Avt.cs
- ViewSimplifier.cs
- IndexedString.cs
- TemplateBindingExpression.cs
- BitmapEffectDrawingContextWalker.cs
- BasicExpandProvider.cs
- RootCodeDomSerializer.cs
- StorageRoot.cs
- DataServiceRequestException.cs
- GenericTypeParameterBuilder.cs
- DragCompletedEventArgs.cs
- UDPClient.cs
- FormsAuthenticationCredentials.cs
- ReadWriteSpinLock.cs
- NominalTypeEliminator.cs
- DayRenderEvent.cs
- CodeParameterDeclarationExpression.cs
- PhysicalAddress.cs
- SchemaType.cs
- MdImport.cs
- Operator.cs
- BaseAsyncResult.cs
- InstanceKey.cs
- LogStore.cs
- ProcessThread.cs
- HttpPostLocalhostServerProtocol.cs
- ObjectAssociationEndMapping.cs
- FormatConvertedBitmap.cs
- DelegatedStream.cs
- AnnotationComponentChooser.cs
- TraceProvider.cs
- control.ime.cs
- ManagementInstaller.cs
- Matrix.cs
- ErrorHandlerModule.cs
- EntitySqlException.cs