Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Services / IO / System / IO / IODescriptionAttribute.cs / 1 / 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
- ManipulationLogic.cs
- TraceRecord.cs
- ContentControl.cs
- OdbcConnectionPoolProviderInfo.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- DbProviderServices.cs
- ValidationResult.cs
- CollectionViewProxy.cs
- DetailsViewRowCollection.cs
- ComponentConverter.cs
- IdentityHolder.cs
- UserPreferenceChangedEventArgs.cs
- XmlWriter.cs
- ServiceAuthorizationElement.cs
- NullableBoolConverter.cs
- SemanticResultValue.cs
- IODescriptionAttribute.cs
- DecimalKeyFrameCollection.cs
- UserNamePasswordValidator.cs
- OrderedDictionary.cs
- UIElement3D.cs
- ProcessHostConfigUtils.cs
- Bezier.cs
- PenLineJoinValidation.cs
- HttpEncoderUtility.cs
- EntityProxyTypeInfo.cs
- NullableBoolConverter.cs
- ListItemParagraph.cs
- ListenerSessionConnectionReader.cs
- SamlSubjectStatement.cs
- Soap.cs
- FastEncoderWindow.cs
- ExceptionTrace.cs
- VirtualizingStackPanel.cs
- BitArray.cs
- Point.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- RelatedPropertyManager.cs
- Label.cs
- CopyCodeAction.cs
- MessageAction.cs
- OdbcConnection.cs
- SendMailErrorEventArgs.cs
- TerminatorSinks.cs
- ServicePointManagerElement.cs
- HttpWebRequest.cs
- ColorDialog.cs
- RecognitionResult.cs
- ModelPerspective.cs
- AudioFormatConverter.cs
- BooleanConverter.cs
- SimpleBitVector32.cs
- InheritanceContextChangedEventManager.cs
- FileVersionInfo.cs
- Point.cs
- ListBindingHelper.cs
- UnauthorizedWebPart.cs
- SimpleMailWebEventProvider.cs
- MinimizableAttributeTypeConverter.cs
- CorrelationExtension.cs
- FrameworkContentElement.cs
- ActiveXHelper.cs
- basecomparevalidator.cs
- MetafileHeader.cs
- MaterializeFromAtom.cs
- RoleBoolean.cs
- BitmapSource.cs
- Image.cs
- HtmlTableRowCollection.cs
- PackageRelationshipCollection.cs
- MachineKey.cs
- ImageButton.cs
- StylusPointPropertyInfo.cs
- CapabilitiesSection.cs
- X509Utils.cs
- PeerObject.cs
- Thread.cs
- DataSourceXmlAttributeAttribute.cs
- BufferAllocator.cs
- SAPICategories.cs
- _BufferOffsetSize.cs
- ExpressionBuilder.cs
- SponsorHelper.cs
- ColorAnimationBase.cs
- streamingZipPartStream.cs
- MemberHolder.cs
- XmlProcessingInstruction.cs
- NavigatorOutput.cs
- UserPersonalizationStateInfo.cs
- MailSettingsSection.cs
- URIFormatException.cs
- Message.cs
- RuleSetReference.cs
- SamlConstants.cs
- WindowsListViewGroupSubsetLink.cs
- DataExpression.cs
- OdbcCommandBuilder.cs
- InputLanguageManager.cs
- CanonicalFontFamilyReference.cs
- XmlSchemaObjectCollection.cs