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
- ToolTipAutomationPeer.cs
- ControlEvent.cs
- HyperLinkField.cs
- ColorConvertedBitmap.cs
- fixedPageContentExtractor.cs
- WebColorConverter.cs
- MethodAccessException.cs
- AnnotationAdorner.cs
- SystemTcpConnection.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- UnionExpr.cs
- StorageEntityTypeMapping.cs
- Module.cs
- DataSourceCollectionBase.cs
- XmlSignatureManifest.cs
- NamespaceQuery.cs
- ISCIIEncoding.cs
- ConnectionProviderAttribute.cs
- DisplayNameAttribute.cs
- OracleString.cs
- ThreadPool.cs
- Symbol.cs
- DataPagerCommandEventArgs.cs
- GroupStyle.cs
- ReadOnlyActivityGlyph.cs
- SessionEndingEventArgs.cs
- DetailsViewPageEventArgs.cs
- CodeIndexerExpression.cs
- ImportedPolicyConversionContext.cs
- DataGridViewUtilities.cs
- StdValidatorsAndConverters.cs
- ObjectSelectorEditor.cs
- WebCategoryAttribute.cs
- HorizontalAlignConverter.cs
- InplaceBitmapMetadataWriter.cs
- RelationshipConverter.cs
- VersionedStreamOwner.cs
- InputLanguageSource.cs
- PeerName.cs
- printdlgexmarshaler.cs
- CultureInfoConverter.cs
- EntityProviderFactory.cs
- BamlLocalizer.cs
- LinkedResource.cs
- BaseTypeViewSchema.cs
- ReturnType.cs
- SingleStorage.cs
- XmlSerializationWriter.cs
- ReliabilityContractAttribute.cs
- JavaScriptSerializer.cs
- SqlProviderUtilities.cs
- InvalidCommandTreeException.cs
- LeafCellTreeNode.cs
- XmlException.cs
- Lease.cs
- GlyphRun.cs
- BuildManagerHost.cs
- RequestBringIntoViewEventArgs.cs
- URLString.cs
- SQLInt16Storage.cs
- SrgsSubset.cs
- ApplicationHost.cs
- WindowsSysHeader.cs
- ManipulationDevice.cs
- PermissionAttributes.cs
- OuterGlowBitmapEffect.cs
- DataRowIndexBuffer.cs
- MsmqIntegrationBinding.cs
- WebPartEditorCancelVerb.cs
- BaseParaClient.cs
- CompiledScopeCriteria.cs
- OledbConnectionStringbuilder.cs
- AttachedAnnotation.cs
- ResourceProperty.cs
- CalendarTable.cs
- ClientFormsAuthenticationCredentials.cs
- XmlFileEditor.cs
- DefaultParameterValueAttribute.cs
- ClientScriptManagerWrapper.cs
- RequestResizeEvent.cs
- RemotingServices.cs
- QilXmlReader.cs
- ThreadAttributes.cs
- FacetDescription.cs
- DriveInfo.cs
- NavigatorOutput.cs
- InputProcessorProfiles.cs
- SimpleType.cs
- AlphaSortedEnumConverter.cs
- SpeechDetectedEventArgs.cs
- ContextMenu.cs
- ScriptManagerProxy.cs
- HybridObjectCache.cs
- Attributes.cs
- FixedDocumentSequencePaginator.cs
- HttpRequestCacheValidator.cs
- DataListGeneralPage.cs
- ListView.cs
- RelOps.cs
- RegexGroup.cs