Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Services / Timers / System / Timers / TimersDescriptionAttribute.cs / 1 / TimersDescriptionAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Timers{
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)]
public class TimersDescriptionAttribute : DescriptionAttribute {
private bool replaced = false;
///
/// Constructs a new sys description.
///
public TimersDescriptionAttribute(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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Timers{
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)]
public class TimersDescriptionAttribute : DescriptionAttribute {
private bool replaced = false;
///
/// Constructs a new sys description.
///
public TimersDescriptionAttribute(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;
}
}
}
}
// 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
- TableAdapterManagerMethodGenerator.cs
- SafeMILHandle.cs
- _HelperAsyncResults.cs
- FamilyMapCollection.cs
- DataPagerCommandEventArgs.cs
- AssociationEndMember.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- safemediahandle.cs
- SqlCommandBuilder.cs
- unitconverter.cs
- StyleCollection.cs
- SortQuery.cs
- BitmapPalette.cs
- HtmlTableRowCollection.cs
- ConvertBinder.cs
- InstanceDataCollectionCollection.cs
- SQLDouble.cs
- ZipIORawDataFileBlock.cs
- DocComment.cs
- FormsAuthenticationConfiguration.cs
- SQLInt32.cs
- Attributes.cs
- QilLiteral.cs
- Inline.cs
- PerfCounterSection.cs
- SymmetricKeyWrap.cs
- BoundConstants.cs
- _ChunkParse.cs
- FacetDescriptionElement.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SmiRecordBuffer.cs
- BitmapVisualManager.cs
- InvariantComparer.cs
- XMLUtil.cs
- BamlStream.cs
- ProtocolElementCollection.cs
- WebControlAdapter.cs
- VectorAnimationUsingKeyFrames.cs
- DataGridColumnHeaderAutomationPeer.cs
- SecurityContext.cs
- followingquery.cs
- SystemFonts.cs
- AssemblyName.cs
- SchemaElementLookUpTable.cs
- Atom10FormatterFactory.cs
- PackageDigitalSignature.cs
- FormClosedEvent.cs
- SpanIndex.cs
- SerializableAttribute.cs
- Parser.cs
- ColorContext.cs
- HexParser.cs
- XmlSerializationReader.cs
- RegexCaptureCollection.cs
- TableItemStyle.cs
- DataGridViewIntLinkedList.cs
- SafeNativeMethods.cs
- TypedTableBaseExtensions.cs
- RuntimeIdentifierPropertyAttribute.cs
- GroupQuery.cs
- TransportBindingElementImporter.cs
- BlurBitmapEffect.cs
- DrawingDrawingContext.cs
- ProfilePropertySettings.cs
- WindowsRichEditRange.cs
- FindRequestContext.cs
- WindowsTreeView.cs
- TimersDescriptionAttribute.cs
- TextWriterTraceListener.cs
- HostingMessageProperty.cs
- SecurityState.cs
- securitycriticaldataClass.cs
- Predicate.cs
- XmlAggregates.cs
- SegmentInfo.cs
- sqlcontext.cs
- DetailsViewDeletedEventArgs.cs
- CompoundFileStreamReference.cs
- MemberExpressionHelper.cs
- RadioButton.cs
- AppSettingsExpressionBuilder.cs
- PermissionSetEnumerator.cs
- _ConnectStream.cs
- SecurityKeyEntropyMode.cs
- CategoryNameCollection.cs
- JoinCqlBlock.cs
- TabRenderer.cs
- SemanticResultKey.cs
- MediaElement.cs
- WeakReference.cs
- TransactionScopeDesigner.cs
- SafeEventHandle.cs
- DataGridHeaderBorder.cs
- XamlInt32CollectionSerializer.cs
- AtomContentProperty.cs
- BitmapFrameDecode.cs
- AlternateView.cs
- ContainerUIElement3D.cs
- ModuleElement.cs
- CodeDirectiveCollection.cs