Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / IODescriptionAttribute.cs / 1305376 / IODescriptionAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.IO {
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 IODescriptionAttribute : DescriptionAttribute {
private bool replaced = false;
///
/// Constructs a new sys description.
///
public IODescriptionAttribute(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.IO {
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 IODescriptionAttribute : DescriptionAttribute {
private bool replaced = false;
///
/// Constructs a new sys description.
///
public IODescriptionAttribute(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
- ExpressionNormalizer.cs
- SqlIdentifier.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CapabilitiesAssignment.cs
- AnnotationResourceCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- SchemaCompiler.cs
- LicenseProviderAttribute.cs
- TableLayoutPanelResizeGlyph.cs
- EntityClientCacheKey.cs
- SoapReflectionImporter.cs
- AuthenticationManager.cs
- BlurBitmapEffect.cs
- TableColumnCollection.cs
- MediaContextNotificationWindow.cs
- SynchronizationHandlesCodeDomSerializer.cs
- ScrollBar.cs
- InputElement.cs
- ComponentChangingEvent.cs
- PropertyGridEditorPart.cs
- TextElement.cs
- LinkedResourceCollection.cs
- ElementInit.cs
- TemplateColumn.cs
- HandlerWithFactory.cs
- HashMembershipCondition.cs
- RenderDataDrawingContext.cs
- TextEmbeddedObject.cs
- RectIndependentAnimationStorage.cs
- ByteStorage.cs
- QueryStringConverter.cs
- TcpTransportSecurity.cs
- OracleString.cs
- XmlSchemaSequence.cs
- DoubleLink.cs
- IIS7WorkerRequest.cs
- CorrelationService.cs
- NgenServicingAttributes.cs
- DataGridViewRowConverter.cs
- EmissiveMaterial.cs
- GridViewColumnCollection.cs
- ReflectionHelper.cs
- ApplicationCommands.cs
- Hyperlink.cs
- IssuanceLicense.cs
- SafeSecurityHandles.cs
- UnauthorizedAccessException.cs
- IdnElement.cs
- ThemeDictionaryExtension.cs
- JsonObjectDataContract.cs
- AttributeData.cs
- BlockUIContainer.cs
- PropertyEntry.cs
- HttpInputStream.cs
- ITextView.cs
- InstanceCompleteException.cs
- XPathAncestorQuery.cs
- WebPartDeleteVerb.cs
- BlurBitmapEffect.cs
- ItemCheckedEvent.cs
- COM2FontConverter.cs
- TrackingServices.cs
- PrimarySelectionGlyph.cs
- ListViewCommandEventArgs.cs
- ExpressionCopier.cs
- ChangeDirector.cs
- TcpClientSocketManager.cs
- _SafeNetHandles.cs
- Wizard.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- InfoCardKeyedHashAlgorithm.cs
- ContractBase.cs
- PropertyMetadata.cs
- DispatcherEventArgs.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ShapingWorkspace.cs
- ThreadAttributes.cs
- GridViewRowCollection.cs
- DataBindingCollection.cs
- AnnotationHelper.cs
- WebZone.cs
- SiteMapHierarchicalDataSourceView.cs
- XmlAttributeCache.cs
- TreeNodeMouseHoverEvent.cs
- ThicknessConverter.cs
- SpeechSynthesizer.cs
- ChangeTracker.cs
- LinkLabel.cs
- CompilerGlobalScopeAttribute.cs
- DbDataSourceEnumerator.cs
- ListViewInsertedEventArgs.cs
- Equal.cs
- FullTextLine.cs
- ObjectStateFormatter.cs
- FileReader.cs
- MatrixCamera.cs
- _Semaphore.cs
- ConfigurationElementProperty.cs
- FlowLayoutPanelDesigner.cs
- EventProviderBase.cs