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
- UntypedNullExpression.cs
- Expression.cs
- DBDataPermissionAttribute.cs
- TextEmbeddedObject.cs
- DesignerCategoryAttribute.cs
- RowToParametersTransformer.cs
- OutOfMemoryException.cs
- Repeater.cs
- EdgeProfileValidation.cs
- CharacterBuffer.cs
- SessionEndingCancelEventArgs.cs
- OleServicesContext.cs
- UserControl.cs
- HierarchicalDataBoundControlAdapter.cs
- ArgumentOutOfRangeException.cs
- String.cs
- SmtpNegotiateAuthenticationModule.cs
- GCHandleCookieTable.cs
- Collection.cs
- _OverlappedAsyncResult.cs
- Transform3DCollection.cs
- TimeSpanFormat.cs
- PolicyStatement.cs
- CacheMemory.cs
- ResourceExpressionBuilder.cs
- DSASignatureFormatter.cs
- PrimitiveType.cs
- ContextMenu.cs
- SplitContainerDesigner.cs
- BezierSegment.cs
- LoopExpression.cs
- TextEvent.cs
- PageThemeCodeDomTreeGenerator.cs
- CatalogPartChrome.cs
- CheckedListBox.cs
- XmlSerializerNamespaces.cs
- InheritedPropertyChangedEventArgs.cs
- GotoExpression.cs
- DtcInterfaces.cs
- SHA512.cs
- ContainerUIElement3D.cs
- ScrollChrome.cs
- CellTreeNode.cs
- XmlTextReaderImpl.cs
- SynchronizingStream.cs
- SqlCrossApplyToCrossJoin.cs
- AccessViolationException.cs
- StateRuntime.cs
- LocatorGroup.cs
- ConstraintManager.cs
- PathSegmentCollection.cs
- Object.cs
- DynamicDataManager.cs
- SnapshotChangeTrackingStrategy.cs
- PolicyStatement.cs
- NameNode.cs
- FileAuthorizationModule.cs
- printdlgexmarshaler.cs
- SupportingTokenSecurityTokenResolver.cs
- CustomErrorCollection.cs
- BevelBitmapEffect.cs
- BooleanAnimationUsingKeyFrames.cs
- QueryTask.cs
- Point.cs
- RemotingServices.cs
- DiscoveryOperationContext.cs
- CompilationPass2Task.cs
- DataGridToolTip.cs
- SynchronousReceiveBehavior.cs
- PositiveTimeSpanValidator.cs
- BooleanStorage.cs
- OrderedEnumerableRowCollection.cs
- RadioButtonAutomationPeer.cs
- EllipticalNodeOperations.cs
- NetWebProxyFinder.cs
- DataGridViewColumn.cs
- PathFigureCollection.cs
- TraceContextRecord.cs
- SoapReflectionImporter.cs
- Ref.cs
- Int32EqualityComparer.cs
- WindowsButton.cs
- ExitEventArgs.cs
- objectquery_tresulttype.cs
- TitleStyle.cs
- WebBodyFormatMessageProperty.cs
- GeneralTransform3DCollection.cs
- ExpandCollapseProviderWrapper.cs
- SourceChangedEventArgs.cs
- FileFormatException.cs
- IIS7UserPrincipal.cs
- RTLAwareMessageBox.cs
- PlainXmlWriter.cs
- Operator.cs
- TextSearch.cs
- StoreConnection.cs
- HttpGetServerProtocol.cs
- XmlQueryStaticData.cs
- WindowsRegion.cs
- MailWriter.cs