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
- Misc.cs
- _SecureChannel.cs
- indexingfiltermarshaler.cs
- IndexedEnumerable.cs
- ButtonColumn.cs
- ListSurrogate.cs
- FontWeights.cs
- AgileSafeNativeMemoryHandle.cs
- TextMessageEncodingBindingElement.cs
- VectorAnimationBase.cs
- StrongNamePublicKeyBlob.cs
- RuntimeCompatibilityAttribute.cs
- TableLayoutCellPaintEventArgs.cs
- CheckPair.cs
- Binding.cs
- CryptoConfig.cs
- SettingsPropertyCollection.cs
- ValueQuery.cs
- RequiredAttributeAttribute.cs
- ValueTable.cs
- DataGridHeaderBorder.cs
- ImageIndexConverter.cs
- SafeRegistryHandle.cs
- WindowsGraphics.cs
- ToolStripDropDown.cs
- _LocalDataStore.cs
- WindowsStatic.cs
- Column.cs
- FontStyle.cs
- StateChangeEvent.cs
- ApplicationFileParser.cs
- GeneralTransform.cs
- TextEndOfSegment.cs
- SerializationException.cs
- BorderSidesEditor.cs
- ParameterReplacerVisitor.cs
- SystemColors.cs
- XamlWriter.cs
- ProtocolsConfigurationHandler.cs
- MarkupProperty.cs
- StatusStrip.cs
- Interlocked.cs
- BindingList.cs
- GlyphTypeface.cs
- PersonalizationStateInfo.cs
- SoapIncludeAttribute.cs
- X509RawDataKeyIdentifierClause.cs
- SvcFileManager.cs
- DelegatedStream.cs
- KeyboardEventArgs.cs
- StrokeNodeOperations.cs
- XPathNodeIterator.cs
- CfgParser.cs
- SerTrace.cs
- SqlClientFactory.cs
- ConfigXmlComment.cs
- ReceiveActivityValidator.cs
- TypefaceCollection.cs
- WebPartEditorCancelVerb.cs
- SocketElement.cs
- WSFederationHttpSecurity.cs
- PartitionedDataSource.cs
- DnsPermission.cs
- SoapSchemaMember.cs
- ButtonChrome.cs
- InstanceOwnerException.cs
- ObjectParameter.cs
- URI.cs
- IfAction.cs
- SchemaImporterExtension.cs
- Context.cs
- WorkflowDesignerMessageFilter.cs
- TableItemStyle.cs
- BaseCAMarshaler.cs
- MethodExecutor.cs
- InputMethodStateChangeEventArgs.cs
- DownloadProgressEventArgs.cs
- LoadWorkflowAsyncResult.cs
- PackagePartCollection.cs
- Label.cs
- AutoResizedEvent.cs
- TextCompositionEventArgs.cs
- SqlAliaser.cs
- DataService.cs
- DataServiceKeyAttribute.cs
- WebPartManager.cs
- MaskedTextBoxTextEditorDropDown.cs
- DropSource.cs
- BackEase.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ErrorsHelper.cs
- ConfigurationManagerInternalFactory.cs
- UpdatePanelTrigger.cs
- NativeCppClassAttribute.cs
- NativeMethods.cs
- InternalSafeNativeMethods.cs
- ECDsa.cs
- SafeRightsManagementHandle.cs
- StringDictionaryCodeDomSerializer.cs
- XmlSchemaImport.cs