Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- CompressStream.cs
- MethodBody.cs
- RootBuilder.cs
- ProcessModule.cs
- InstanceStoreQueryResult.cs
- DataPagerFieldCommandEventArgs.cs
- BitmapSizeOptions.cs
- SiteMapDataSourceDesigner.cs
- DuplicateWaitObjectException.cs
- CreationContext.cs
- ChangeDirector.cs
- Size3DValueSerializer.cs
- CreatingCookieEventArgs.cs
- TraceSource.cs
- EllipseGeometry.cs
- ErrorRuntimeConfig.cs
- DefaultWorkflowLoaderService.cs
- SQLDateTime.cs
- ResolveMatchesCD1.cs
- SQLResource.cs
- ObjectIDGenerator.cs
- ToolStripItemClickedEventArgs.cs
- TextViewSelectionProcessor.cs
- StagingAreaInputItem.cs
- InternalRelationshipCollection.cs
- RestClientProxyHandler.cs
- Span.cs
- DateTimeConstantAttribute.cs
- BaseResourcesBuildProvider.cs
- SharedStatics.cs
- UnsafeNativeMethods.cs
- XmlDataSource.cs
- webproxy.cs
- ManipulationCompletedEventArgs.cs
- MailSettingsSection.cs
- Color.cs
- ThreadInterruptedException.cs
- GeneralTransform3DGroup.cs
- HtmlHead.cs
- XslAstAnalyzer.cs
- Int64.cs
- DictionaryCustomTypeDescriptor.cs
- DivideByZeroException.cs
- AuditLogLocation.cs
- XmlNodeWriter.cs
- ImageBrush.cs
- DataFormats.cs
- ApplicationInfo.cs
- Adorner.cs
- RTLAwareMessageBox.cs
- NumberSubstitution.cs
- CmsInterop.cs
- PostBackTrigger.cs
- PopupRootAutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- ContextMenu.cs
- TextEndOfLine.cs
- SqlMethodTransformer.cs
- FontUnit.cs
- Span.cs
- MultiSelectRootGridEntry.cs
- Aes.cs
- HScrollProperties.cs
- FragmentQueryProcessor.cs
- EnterpriseServicesHelper.cs
- TextDecorationCollectionConverter.cs
- TokenBasedSetEnumerator.cs
- ClusterUtils.cs
- UserControlCodeDomTreeGenerator.cs
- BitmapInitialize.cs
- FontUnit.cs
- TokenBasedSetEnumerator.cs
- UxThemeWrapper.cs
- MarkupObject.cs
- StringReader.cs
- IODescriptionAttribute.cs
- Hyperlink.cs
- RawStylusActions.cs
- InputLanguage.cs
- ThemeDirectoryCompiler.cs
- remotingproxy.cs
- DetailsViewUpdatedEventArgs.cs
- StylusPointProperties.cs
- NotifyInputEventArgs.cs
- UserNamePasswordValidator.cs
- PaintEvent.cs
- StreamWriter.cs
- ButtonBaseDesigner.cs
- AppSettingsExpressionBuilder.cs
- SerializationSectionGroup.cs
- TypeHelper.cs
- TimersDescriptionAttribute.cs
- BufferModesCollection.cs
- COM2ExtendedUITypeEditor.cs
- ConfigurationException.cs
- IgnoreDeviceFilterElement.cs
- EditorZoneBase.cs
- AttachmentCollection.cs
- CommandID.cs
- EventToken.cs