Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / WebServicesDescriptionAttribute.cs / 1305376 / WebServicesDescriptionAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services {
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)]
internal class WebServicesDescriptionAttribute : DescriptionAttribute {
private bool replaced = false;
///
///
/// Constructs a new sys description.
///
internal WebServicesDescriptionAttribute(string description) : base(description) {
}
///
///
/// Retrieves the description text.
///
public override string Description {
get {
if (!replaced) {
replaced = true;
DescriptionValue = Res.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.Web.Services {
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)]
internal class WebServicesDescriptionAttribute : DescriptionAttribute {
private bool replaced = false;
///
///
/// Constructs a new sys description.
///
internal WebServicesDescriptionAttribute(string description) : base(description) {
}
///
///
/// Retrieves the description text.
///
public override string Description {
get {
if (!replaced) {
replaced = true;
DescriptionValue = Res.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
- ObjectSelectorEditor.cs
- SimplePropertyEntry.cs
- ListItemCollection.cs
- DecimalStorage.cs
- DataControlFieldCollection.cs
- RuntimeHelpers.cs
- Pen.cs
- CustomAssemblyResolver.cs
- MetadataUtil.cs
- MissingManifestResourceException.cs
- FrameworkContentElement.cs
- SuppressedPackageProperties.cs
- DBCSCodePageEncoding.cs
- HandlerFactoryCache.cs
- TabPage.cs
- MimePart.cs
- LineSegment.cs
- FontResourceCache.cs
- OdbcException.cs
- RunClient.cs
- Span.cs
- VariableQuery.cs
- ObjectStorage.cs
- ParserHooks.cs
- WebRequestModuleElement.cs
- TextTreeUndoUnit.cs
- TypeConverterValueSerializer.cs
- PlainXmlSerializer.cs
- CqlWriter.cs
- TypeSystem.cs
- BaseUriHelper.cs
- FileDialogCustomPlacesCollection.cs
- AutoSizeToolBoxItem.cs
- BamlLocalizationDictionary.cs
- TableItemPattern.cs
- tabpagecollectioneditor.cs
- FactoryGenerator.cs
- ConfigurationSectionCollection.cs
- DataGridGeneralPage.cs
- HTMLTextWriter.cs
- OleDbDataAdapter.cs
- DelegateArgumentValue.cs
- ObjectViewQueryResultData.cs
- TaiwanLunisolarCalendar.cs
- Validator.cs
- XmlSchemaSimpleTypeRestriction.cs
- SortableBindingList.cs
- StateMachineWorkflowDesigner.cs
- TraversalRequest.cs
- XmlSecureResolver.cs
- OdbcParameter.cs
- BitmapEffectDrawingContent.cs
- StorageTypeMapping.cs
- PropertyMetadata.cs
- AddIn.cs
- TreeNodeConverter.cs
- DataPointer.cs
- SystemFonts.cs
- BitmapMetadataEnumerator.cs
- SQLDecimal.cs
- EventBuilder.cs
- X500Name.cs
- XmlSchemas.cs
- ModelPropertyCollectionImpl.cs
- SingleSelectRootGridEntry.cs
- DataObject.cs
- SQLBytesStorage.cs
- Decimal.cs
- Int16.cs
- DisplayInformation.cs
- SchemaType.cs
- CompositeFontParser.cs
- SelectionProcessor.cs
- ConnectionProviderAttribute.cs
- DBSqlParserColumnCollection.cs
- TrustSection.cs
- Effect.cs
- NativeRightsManagementAPIsStructures.cs
- FileLogRecordEnumerator.cs
- ListSourceHelper.cs
- recordstate.cs
- SmtpNegotiateAuthenticationModule.cs
- DetailsViewUpdateEventArgs.cs
- TextBoxView.cs
- MatrixAnimationUsingKeyFrames.cs
- RuntimeHelpers.cs
- RadioButton.cs
- DelegatingTypeDescriptionProvider.cs
- Timer.cs
- WebConfigurationHost.cs
- XmlUTF8TextWriter.cs
- MethodAccessException.cs
- SessionViewState.cs
- LinqDataView.cs
- ColorDialog.cs
- AppDomainUnloadedException.cs
- ToolStripLocationCancelEventArgs.cs
- SelectionGlyphBase.cs
- SynchronizationContextHelper.cs
- BrowserCapabilitiesCodeGenerator.cs