Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebSysDescriptionAttribute.cs / 1305376 / WebSysDescriptionAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web {
using System;
using System.ComponentModel;
///
/// DescriptionAttribute marks a property, event, or extender with a
/// description. Visual designers can display this description when referencing
/// the member.
///
[AttributeUsage(AttributeTargets.All)]
internal class WebSysDescriptionAttribute : DescriptionAttribute {
private bool replaced;
///
/// Constructs a new sys description.
///
internal WebSysDescriptionAttribute(string description) : base(description) {
}
///
/// Retrieves the description text.
///
public override string Description {
get {
if (!replaced) {
replaced = true;
DescriptionValue = SR.GetString(base.Description);
}
return base.Description;
}
}
public override object TypeId {
get {
return typeof(DescriptionAttribute);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web {
using System;
using System.ComponentModel;
///
/// DescriptionAttribute marks a property, event, or extender with a
/// description. Visual designers can display this description when referencing
/// the member.
///
[AttributeUsage(AttributeTargets.All)]
internal class WebSysDescriptionAttribute : DescriptionAttribute {
private bool replaced;
///
/// Constructs a new sys description.
///
internal WebSysDescriptionAttribute(string description) : base(description) {
}
///
/// Retrieves the description text.
///
public override string Description {
get {
if (!replaced) {
replaced = true;
DescriptionValue = SR.GetString(base.Description);
}
return base.Description;
}
}
public override object TypeId {
get {
return typeof(DescriptionAttribute);
}
}
}
}
// 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
- HttpsTransportBindingElement.cs
- StoreItemCollection.Loader.cs
- smtpconnection.cs
- CodeArrayIndexerExpression.cs
- WorkflowQueuingService.cs
- xmlfixedPageInfo.cs
- XmlSchemaInfo.cs
- RuntimeConfig.cs
- DecimalAnimation.cs
- GlobalAllocSafeHandle.cs
- ListDictionary.cs
- ParseChildrenAsPropertiesAttribute.cs
- GlobalProxySelection.cs
- IRCollection.cs
- XmlResolver.cs
- TableProvider.cs
- CryptoConfig.cs
- ScriptResourceAttribute.cs
- XmlAnyElementAttributes.cs
- CheckBox.cs
- ControlAdapter.cs
- XmlSchemaAnyAttribute.cs
- EmptyTextWriter.cs
- KeyboardEventArgs.cs
- ConfigXmlDocument.cs
- ListViewUpdateEventArgs.cs
- Tag.cs
- OrderedDictionary.cs
- StorageBasedPackageProperties.cs
- SqlUDTStorage.cs
- SBCSCodePageEncoding.cs
- BaseTreeIterator.cs
- EpmContentDeSerializerBase.cs
- Vector3D.cs
- WorkflowPageSetupDialog.cs
- BasicKeyConstraint.cs
- HttpProcessUtility.cs
- SystemDropShadowChrome.cs
- FilteredDataSetHelper.cs
- DmlSqlGenerator.cs
- codemethodreferenceexpression.cs
- Binding.cs
- WebPartConnection.cs
- propertyentry.cs
- DataGridLinkButton.cs
- TextEditorDragDrop.cs
- _UncName.cs
- SafeFileMappingHandle.cs
- EntityObject.cs
- Timer.cs
- NominalTypeEliminator.cs
- _FtpDataStream.cs
- DiffuseMaterial.cs
- SingleAnimation.cs
- LinqDataSourceHelper.cs
- MetadataPropertyCollection.cs
- DesignOnlyAttribute.cs
- JavaScriptSerializer.cs
- CultureInfoConverter.cs
- EmbossBitmapEffect.cs
- BaseTemplatedMobileComponentEditor.cs
- DecimalAnimationUsingKeyFrames.cs
- Cursors.cs
- EntitySqlQueryState.cs
- StatusBar.cs
- BamlTreeMap.cs
- TextSelection.cs
- TimeoutConverter.cs
- MarkupObject.cs
- XmlDictionaryReaderQuotas.cs
- ImportContext.cs
- wpf-etw.cs
- ConnectivityStatus.cs
- MarkupCompilePass1.cs
- SiteMapNodeItemEventArgs.cs
- StringPropertyBuilder.cs
- IPAddress.cs
- ScriptingProfileServiceSection.cs
- XmlMembersMapping.cs
- MarkupWriter.cs
- PreviewKeyDownEventArgs.cs
- PersonalizationAdministration.cs
- FixedFlowMap.cs
- DiscreteKeyFrames.cs
- AuthenticodeSignatureInformation.cs
- FunctionImportMapping.cs
- Operators.cs
- UriSectionData.cs
- HandlerMappingMemo.cs
- MouseDevice.cs
- EntitySetDataBindingList.cs
- AuthenticationManager.cs
- NavigationHelper.cs
- HtmlLiteralTextAdapter.cs
- XmlHelper.cs
- DurationConverter.cs
- InstanceCreationEditor.cs
- SqlDependencyUtils.cs
- SimpleNameService.cs
- DomainUpDown.cs