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
- Point3DValueSerializer.cs
- NameNode.cs
- SqlConnectionHelper.cs
- TextBox.cs
- DrawToolTipEventArgs.cs
- InputReportEventArgs.cs
- UIPermission.cs
- FixedSOMContainer.cs
- ImageDrawing.cs
- SliderAutomationPeer.cs
- ListViewInsertedEventArgs.cs
- PointHitTestParameters.cs
- DeferredReference.cs
- NumericUpDown.cs
- ItemList.cs
- CodeExpressionCollection.cs
- PageRanges.cs
- ItemList.cs
- OrderedEnumerableRowCollection.cs
- SqlHelper.cs
- NetworkCredential.cs
- XmlArrayItemAttribute.cs
- EUCJPEncoding.cs
- TextDecorationCollectionConverter.cs
- ImageAttributes.cs
- DefaultPropertyAttribute.cs
- InstanceNameConverter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- OneToOneMappingSerializer.cs
- MailBnfHelper.cs
- AddInServer.cs
- RadioButtonFlatAdapter.cs
- TagNameToTypeMapper.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlSchemaInclude.cs
- DisplayNameAttribute.cs
- XamlPoint3DCollectionSerializer.cs
- UserUseLicenseDictionaryLoader.cs
- UserPreferenceChangedEventArgs.cs
- OpenTypeLayoutCache.cs
- OrderedEnumerableRowCollection.cs
- PolyLineSegment.cs
- CompensationExtension.cs
- FormClosedEvent.cs
- FixedSOMTableCell.cs
- BitmapEffectGroup.cs
- SupportsEventValidationAttribute.cs
- SafeNativeMethodsOther.cs
- PerfService.cs
- DataGridHeaderBorder.cs
- ObservableCollectionDefaultValueFactory.cs
- Brushes.cs
- MimeTypeAttribute.cs
- EmptyImpersonationContext.cs
- SystemDiagnosticsSection.cs
- WorkflowServiceHostFactory.cs
- Font.cs
- PenThread.cs
- CancelEventArgs.cs
- cookieexception.cs
- EdgeModeValidation.cs
- VisualBrush.cs
- InstanceHandle.cs
- InnerItemCollectionView.cs
- WebRequestModuleElementCollection.cs
- shaperfactoryquerycacheentry.cs
- ExpressionEvaluator.cs
- ItemsControl.cs
- GridViewColumnHeaderAutomationPeer.cs
- ObjectDataSourceChooseTypePanel.cs
- RectConverter.cs
- PageAsyncTaskManager.cs
- EmptyEnumerator.cs
- Size.cs
- HtmlTernaryTree.cs
- DirectionalLight.cs
- XhtmlBasicLiteralTextAdapter.cs
- BridgeDataRecord.cs
- Semaphore.cs
- SortDescriptionCollection.cs
- UserPreferenceChangingEventArgs.cs
- DesignTimeHTMLTextWriter.cs
- CellRelation.cs
- XComponentModel.cs
- XmlEventCache.cs
- WebPartDisplayModeCancelEventArgs.cs
- ConfigPathUtility.cs
- SafeNativeMethods.cs
- HashStream.cs
- dsa.cs
- CredentialSelector.cs
- SqlBuffer.cs
- PersonalizablePropertyEntry.cs
- DispatcherProcessingDisabled.cs
- UnsafeNetInfoNativeMethods.cs
- ThreadExceptionDialog.cs
- TextDecorationLocationValidation.cs
- QueueTransferProtocol.cs
- MetadataItemEmitter.cs
- ExpandedWrapper.cs