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
- QilStrConcat.cs
- DataGridColumnHeader.cs
- LZCodec.cs
- ExistsInCollection.cs
- GenericRootAutomationPeer.cs
- AppSettingsExpressionEditor.cs
- StateManagedCollection.cs
- CollectionsUtil.cs
- FullTrustAssembly.cs
- UIElement3DAutomationPeer.cs
- GridItemPattern.cs
- ConnectionManagementElementCollection.cs
- SspiWrapper.cs
- TextPointerBase.cs
- AbstractExpressions.cs
- TableLayoutSettings.cs
- ObjectDataSourceDisposingEventArgs.cs
- Select.cs
- DeferredBinaryDeserializerExtension.cs
- EdmItemError.cs
- ControlPaint.cs
- DefaultAssemblyResolver.cs
- ToolStripLabel.cs
- BitmapEffectDrawingContextWalker.cs
- SolidBrush.cs
- PinnedBufferMemoryStream.cs
- SubstitutionList.cs
- PagesSection.cs
- SolidBrush.cs
- Bits.cs
- HandoffBehavior.cs
- VirtualizedItemPattern.cs
- ImageButton.cs
- DoubleLinkListEnumerator.cs
- HttpConfigurationContext.cs
- MessageFilter.cs
- MimeWriter.cs
- Helpers.cs
- SerializerWriterEventHandlers.cs
- UdpChannelFactory.cs
- DoubleUtil.cs
- sqlpipe.cs
- EnumBuilder.cs
- DetailsViewPagerRow.cs
- CreateBookmarkScope.cs
- GeometryModel3D.cs
- SqlAggregateChecker.cs
- ScriptReferenceBase.cs
- ActiveXHost.cs
- ConfigurationStrings.cs
- ExpandedWrapper.cs
- BufferManager.cs
- QilNode.cs
- EastAsianLunisolarCalendar.cs
- ParameterCollection.cs
- ControlAdapter.cs
- IdentityReference.cs
- XmlSchemaInclude.cs
- DbBuffer.cs
- PropertyReferenceSerializer.cs
- XamlPoint3DCollectionSerializer.cs
- MembershipPasswordException.cs
- UriTemplateQueryValue.cs
- UnsignedPublishLicense.cs
- HandlerWithFactory.cs
- RouteItem.cs
- ConfigXmlCDataSection.cs
- PolicyManager.cs
- GetWinFXPath.cs
- URLMembershipCondition.cs
- EDesignUtil.cs
- ColorMatrix.cs
- ASCIIEncoding.cs
- CompilerScopeManager.cs
- ValueProviderWrapper.cs
- SqlTypeSystemProvider.cs
- TypeKeyValue.cs
- HtmlLiteralTextAdapter.cs
- PersistChildrenAttribute.cs
- CodeParameterDeclarationExpression.cs
- _TransmitFileOverlappedAsyncResult.cs
- Token.cs
- RectAnimationUsingKeyFrames.cs
- LocalizedNameDescriptionPair.cs
- GorillaCodec.cs
- RightsManagementEncryptedStream.cs
- AssociationTypeEmitter.cs
- PointHitTestParameters.cs
- ProjectionCamera.cs
- LayoutTableCell.cs
- AudioLevelUpdatedEventArgs.cs
- BitmapDownload.cs
- CellLabel.cs
- FontEditor.cs
- BitmapEffectGeneralTransform.cs
- mda.cs
- ConfigurationPropertyCollection.cs
- BitmapEncoder.cs
- _HelperAsyncResults.cs
- SecurityHeaderElementInferenceEngine.cs