Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Timers / System / Timers / TimersDescriptionAttribute.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileClassifier.cs
- CodeAccessSecurityEngine.cs
- DataKeyCollection.cs
- ExtentKey.cs
- SkipQueryOptionExpression.cs
- ReferencedType.cs
- XmlReflectionImporter.cs
- ConnectionManager.cs
- ObjectDataProvider.cs
- RectAnimationClockResource.cs
- MediaContext.cs
- BasicExpandProvider.cs
- BufferedGraphicsManager.cs
- WebPartZoneBase.cs
- TransformedBitmap.cs
- DataBoundControlParameterTarget.cs
- IndexedString.cs
- SqlTriggerAttribute.cs
- KeyTimeConverter.cs
- Ray3DHitTestResult.cs
- CharAnimationBase.cs
- HttpModulesSection.cs
- _ContextAwareResult.cs
- WindowsListViewItemCheckBox.cs
- DataGridViewRowsAddedEventArgs.cs
- Utilities.cs
- FontFamilyConverter.cs
- ProcessModule.cs
- MenuRenderer.cs
- ErrorCodes.cs
- EventLevel.cs
- ToolStripRenderer.cs
- NameSpaceExtractor.cs
- PresentationSource.cs
- LambdaCompiler.Binary.cs
- PackUriHelper.cs
- SqlMetaData.cs
- SpotLight.cs
- DetailsViewRow.cs
- TrackBar.cs
- NativeMethodsCLR.cs
- XsltCompileContext.cs
- ISAPIWorkerRequest.cs
- StylusPlugInCollection.cs
- Char.cs
- DefaultTextStore.cs
- HttpsTransportBindingElement.cs
- UnaryNode.cs
- Hashtable.cs
- followingquery.cs
- SemanticAnalyzer.cs
- RemoteWebConfigurationHostServer.cs
- ExpressionBindingCollection.cs
- LoginView.cs
- RenderDataDrawingContext.cs
- relpropertyhelper.cs
- VisualStyleRenderer.cs
- InfiniteTimeSpanConverter.cs
- CalendarItem.cs
- Accessors.cs
- SspiNegotiationTokenAuthenticator.cs
- EventBuilder.cs
- SortDescriptionCollection.cs
- Privilege.cs
- Vector3DCollectionConverter.cs
- FunctionMappingTranslator.cs
- AsyncOperationManager.cs
- Types.cs
- DecimalMinMaxAggregationOperator.cs
- XmlSchemaDocumentation.cs
- MatrixCamera.cs
- LocalizeDesigner.cs
- ExpressionConverter.cs
- SessionPageStateSection.cs
- SeekStoryboard.cs
- BasePropertyDescriptor.cs
- InternalBufferOverflowException.cs
- TreeBuilderBamlTranslator.cs
- TraceHandler.cs
- PathData.cs
- HelloOperationCD1AsyncResult.cs
- VBCodeProvider.cs
- OrderablePartitioner.cs
- PersonalizationStateInfoCollection.cs
- DigitShape.cs
- PerfCounters.cs
- OutputScopeManager.cs
- FileLevelControlBuilderAttribute.cs
- Application.cs
- UnauthorizedWebPart.cs
- ToggleButtonAutomationPeer.cs
- WebPartDisplayMode.cs
- webproxy.cs
- CalendarDay.cs
- SystemEvents.cs
- ButtonFieldBase.cs
- UnicastIPAddressInformationCollection.cs
- MsmqReceiveHelper.cs
- WindowsListViewScroll.cs
- RequestCachingSection.cs