Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / WebSysDescriptionAttribute.cs / 1 / 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
- EpmSyndicationContentSerializer.cs
- ColorInterpolationModeValidation.cs
- CopyOnWriteList.cs
- OdbcConnectionPoolProviderInfo.cs
- SecureEnvironment.cs
- ConfigUtil.cs
- DataObject.cs
- MimeTypeAttribute.cs
- ListViewInsertedEventArgs.cs
- TaskbarItemInfo.cs
- Queue.cs
- OptimalTextSource.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DBPropSet.cs
- Quad.cs
- ControlAdapter.cs
- HtmlInputImage.cs
- CultureInfoConverter.cs
- LogEntrySerialization.cs
- InkCanvasInnerCanvas.cs
- DataGridViewDataErrorEventArgs.cs
- WindowHideOrCloseTracker.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Pen.cs
- Journal.cs
- Int64Storage.cs
- ParameterToken.cs
- ProtectedConfiguration.cs
- SaveFileDialog.cs
- SelectQueryOperator.cs
- ValidationPropertyAttribute.cs
- UnmanagedMemoryStreamWrapper.cs
- ToolStripPanel.cs
- UnsafeMethods.cs
- Pointer.cs
- TableItemStyle.cs
- RegexCompilationInfo.cs
- mansign.cs
- TdsParserStaticMethods.cs
- TdsParser.cs
- WebRequestModulesSection.cs
- Condition.cs
- ResourceProviderFactory.cs
- ScaleTransform.cs
- OdbcConnectionHandle.cs
- MimeMultiPart.cs
- StrokeNodeEnumerator.cs
- FormViewCommandEventArgs.cs
- ArrayElementGridEntry.cs
- GeometryHitTestParameters.cs
- TransformConverter.cs
- UnmanagedHandle.cs
- ProfileBuildProvider.cs
- IChannel.cs
- FormViewDeleteEventArgs.cs
- FreezableCollection.cs
- ContractListAdapter.cs
- DecimalConstantAttribute.cs
- OracleFactory.cs
- SByte.cs
- FontInfo.cs
- BamlResourceSerializer.cs
- Guid.cs
- XPathEmptyIterator.cs
- EditCommandColumn.cs
- RootAction.cs
- InteropExecutor.cs
- RecognizerStateChangedEventArgs.cs
- FilterElement.cs
- DoubleConverter.cs
- RegexGroupCollection.cs
- IgnoreSection.cs
- TouchEventArgs.cs
- WCFModelStrings.Designer.cs
- FontConverter.cs
- HeaderUtility.cs
- MailBnfHelper.cs
- ResourceExpressionBuilder.cs
- ToolStripSplitStackLayout.cs
- _HTTPDateParse.cs
- COM2PropertyBuilderUITypeEditor.cs
- IApplicationTrustManager.cs
- WeakReference.cs
- QualifiedCellIdBoolean.cs
- FlowLayout.cs
- DataSourceXmlClassAttribute.cs
- CopyEncoder.cs
- ButtonBaseAutomationPeer.cs
- DispatcherProcessingDisabled.cs
- VirtualizedContainerService.cs
- Activator.cs
- BrowserTree.cs
- SafeEventLogReadHandle.cs
- Unit.cs
- uribuilder.cs
- AddInEnvironment.cs
- MatrixTransform.cs
- LabelEditEvent.cs
- ActiveXSite.cs
- SqlInternalConnectionSmi.cs