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
- BinaryUtilClasses.cs
- OdbcInfoMessageEvent.cs
- XmlArrayItemAttribute.cs
- PropertyPath.cs
- NetSectionGroup.cs
- ObjectConverter.cs
- KoreanCalendar.cs
- RenderCapability.cs
- ColumnMap.cs
- ServiceNameElement.cs
- HttpChannelBindingToken.cs
- DoubleLinkListEnumerator.cs
- ResourceDefaultValueAttribute.cs
- ConfigXmlComment.cs
- ProgressPage.cs
- QueryableDataSourceView.cs
- RegexRunnerFactory.cs
- EntryWrittenEventArgs.cs
- PositiveTimeSpanValidatorAttribute.cs
- TemplateControlBuildProvider.cs
- AssociationSetMetadata.cs
- ApplicationInfo.cs
- HttpStaticObjectsCollectionWrapper.cs
- VirtualDirectoryMappingCollection.cs
- Rectangle.cs
- UndoManager.cs
- SchemaAttDef.cs
- RedBlackList.cs
- AuthenticationService.cs
- WindowsScrollBarBits.cs
- DataSourceCache.cs
- CaseStatement.cs
- DataServicePagingProviderWrapper.cs
- WasHttpModulesInstallComponent.cs
- OracleCommand.cs
- TextSearch.cs
- VisualTreeUtils.cs
- ToolstripProfessionalRenderer.cs
- HttpDictionary.cs
- prefixendpointaddressmessagefilter.cs
- MenuRenderer.cs
- InvokeBinder.cs
- ConnectionPoolRegistry.cs
- TextDecorationUnitValidation.cs
- ClickablePoint.cs
- Configuration.cs
- MimeMultiPart.cs
- Panel.cs
- CssTextWriter.cs
- SafeLibraryHandle.cs
- NamespaceEmitter.cs
- ServicePointManagerElement.cs
- DoubleCollection.cs
- AttachInfo.cs
- VectorAnimationBase.cs
- AssertSection.cs
- RealProxy.cs
- BufferBuilder.cs
- DrawListViewColumnHeaderEventArgs.cs
- ValidationHelpers.cs
- WindowsServiceElement.cs
- AuthenticatingEventArgs.cs
- LineUtil.cs
- FreeFormDragDropManager.cs
- ParserContext.cs
- IIS7UserPrincipal.cs
- NetworkAddressChange.cs
- XPathDocument.cs
- TextLineResult.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TextEditorTables.cs
- TextReader.cs
- ContainsSearchOperator.cs
- ScrollChrome.cs
- DependencyProperty.cs
- PeerUnsafeNativeCryptMethods.cs
- BinHexDecoder.cs
- InteropDesigner.xaml.cs
- _CommandStream.cs
- HwndProxyElementProvider.cs
- IResourceProvider.cs
- QilPatternFactory.cs
- FormatException.cs
- HttpProfileGroupBase.cs
- TableCellCollection.cs
- FileUtil.cs
- LabelEditEvent.cs
- TableHeaderCell.cs
- ActivationArguments.cs
- ACE.cs
- WebPartTransformer.cs
- PointHitTestResult.cs
- RegexCode.cs
- ResponseBodyWriter.cs
- SamlAssertion.cs
- SessionStateItemCollection.cs
- Operator.cs
- AlternateView.cs
- Underline.cs
- keycontainerpermission.cs