Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SpellCheck.cs
- IdentityNotMappedException.cs
- DBConnectionString.cs
- DivideByZeroException.cs
- WinFormsComponentEditor.cs
- StateItem.cs
- ClientBuildManagerCallback.cs
- DataGridViewCellStyle.cs
- OptimizedTemplateContentHelper.cs
- MdiWindowListItemConverter.cs
- ActivityIdHeader.cs
- TreeNodeClickEventArgs.cs
- UnsafeNativeMethods.cs
- PathGeometry.cs
- AdapterDictionary.cs
- LocalizedNameDescriptionPair.cs
- ComponentEvent.cs
- IteratorFilter.cs
- DocComment.cs
- SqlWebEventProvider.cs
- SafeEventHandle.cs
- MappingItemCollection.cs
- DataPagerFieldCommandEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- TextContainerHelper.cs
- WinInetCache.cs
- DesignerSerializationManager.cs
- ScrollChrome.cs
- IDispatchConstantAttribute.cs
- EventlogProvider.cs
- ScrollChrome.cs
- DataList.cs
- ControlTemplate.cs
- SR.Designer.cs
- ManagedFilter.cs
- XamlRtfConverter.cs
- SchemaElementDecl.cs
- FlowDocumentPage.cs
- SessionChannels.cs
- PersistencePipeline.cs
- MultiBinding.cs
- FormsAuthenticationModule.cs
- ImmutableCollection.cs
- GPPOINT.cs
- BitmapMetadataEnumerator.cs
- TextBounds.cs
- IndentTextWriter.cs
- JournalEntryListConverter.cs
- PasswordBox.cs
- EdgeModeValidation.cs
- TextWriterTraceListener.cs
- Attributes.cs
- DataFieldEditor.cs
- IndentTextWriter.cs
- SoapMessage.cs
- AutomationElementCollection.cs
- PointKeyFrameCollection.cs
- StreamWriter.cs
- CatalogPartCollection.cs
- HtmlInputImage.cs
- SaveWorkflowCommand.cs
- AsymmetricAlgorithm.cs
- MsdtcWrapper.cs
- IdentityReference.cs
- PersonalizationStateInfo.cs
- UnicodeEncoding.cs
- SQLString.cs
- SubpageParaClient.cs
- RequestCache.cs
- RemotingSurrogateSelector.cs
- PhoneCall.cs
- DiscardableAttribute.cs
- ConsoleEntryPoint.cs
- ReadOnlyCollection.cs
- safex509handles.cs
- CustomPeerResolverService.cs
- CultureInfoConverter.cs
- SafeProcessHandle.cs
- XmlException.cs
- EntityDataSourceContainerNameConverter.cs
- WeakReferenceKey.cs
- AnnotationService.cs
- RelationshipDetailsRow.cs
- TextFindEngine.cs
- LocatorManager.cs
- BitmapMetadataEnumerator.cs
- AssemblyContextControlItem.cs
- NameValueSectionHandler.cs
- BamlTreeMap.cs
- SemanticResultValue.cs
- SchemaLookupTable.cs
- DragDeltaEventArgs.cs
- XmlNotation.cs
- Accessible.cs
- CodeBlockBuilder.cs
- RoutedEventConverter.cs
- DbConnectionInternal.cs
- WinFormsSecurity.cs
- DataObjectFieldAttribute.cs
- SqlDataSourceView.cs