Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / System / Windows / Markup / ConstructorArgumentAttribute.cs / 1 / ConstructorArgumentAttribute.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2005
//
// File: ConstructorArgumentAttribute.cs
//
// Contents: An attribute to declare that this property can be
// initialized using the classes constructor of the name
// provided.
//
// Created: 05/06/2005 [....]
//
//-----------------------------------------------------------------------
using System;
namespace System.Windows.Markup
{
///
/// Attribute to declare that this associated property can be initialized by a
/// constructor parameter and should be ignored for serialization if the constructor
/// with an argument of the supplied name is used to construct the instance.
///
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class ConstructorArgumentAttribute : Attribute
{
///
/// Constructor for an ConstructorArgumentAttribute
///
/// Name of the constructor argument that will initialize this property
public ConstructorArgumentAttribute(string argumentName)
{
_argumentName = argumentName;
}
///
/// Name of the constructor argument that will initialize this property
///
public string ArgumentName
{
get { return _argumentName; }
}
private string _argumentName;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2005
//
// File: ConstructorArgumentAttribute.cs
//
// Contents: An attribute to declare that this property can be
// initialized using the classes constructor of the name
// provided.
//
// Created: 05/06/2005 [....]
//
//-----------------------------------------------------------------------
using System;
namespace System.Windows.Markup
{
///
/// Attribute to declare that this associated property can be initialized by a
/// constructor parameter and should be ignored for serialization if the constructor
/// with an argument of the supplied name is used to construct the instance.
///
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class ConstructorArgumentAttribute : Attribute
{
///
/// Constructor for an ConstructorArgumentAttribute
///
/// Name of the constructor argument that will initialize this property
public ConstructorArgumentAttribute(string argumentName)
{
_argumentName = argumentName;
}
///
/// Name of the constructor argument that will initialize this property
///
public string ArgumentName
{
get { return _argumentName; }
}
private string _argumentName;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormattedText.cs
- WpfPayload.cs
- ConvertTextFrag.cs
- CheckedListBox.cs
- SqlNodeTypeOperators.cs
- CodeTypeParameter.cs
- SafePipeHandle.cs
- Oid.cs
- HyperlinkAutomationPeer.cs
- GridProviderWrapper.cs
- Int32Rect.cs
- TextBoxBase.cs
- UserMapPath.cs
- CompositeActivityMarkupSerializer.cs
- ObjectPropertyMapping.cs
- AbstractExpressions.cs
- UnsafeNativeMethodsTablet.cs
- CodeGenerator.cs
- SqlConnectionStringBuilder.cs
- MessageRpc.cs
- UIElementCollection.cs
- Attributes.cs
- ToolStripLocationCancelEventArgs.cs
- WebRequestModuleElement.cs
- IpcChannel.cs
- GridLengthConverter.cs
- GcSettings.cs
- Expander.cs
- BamlWriter.cs
- CustomCategoryAttribute.cs
- StyleConverter.cs
- CultureSpecificStringDictionary.cs
- CachedFontFace.cs
- PropertyGrid.cs
- ViewStateModeByIdAttribute.cs
- IPEndPointCollection.cs
- Grid.cs
- StringInfo.cs
- RuntimeEnvironment.cs
- XmlDeclaration.cs
- XsdBuildProvider.cs
- HistoryEventArgs.cs
- WebSysDefaultValueAttribute.cs
- CompositeDataBoundControl.cs
- RuntimeIdentifierPropertyAttribute.cs
- DuplexChannel.cs
- DataGridViewSelectedColumnCollection.cs
- ActiveDocumentEvent.cs
- UnionCqlBlock.cs
- GridItemPattern.cs
- TemplateControlCodeDomTreeGenerator.cs
- UIElementParaClient.cs
- WebPartsSection.cs
- CapacityStreamGeometryContext.cs
- Int32KeyFrameCollection.cs
- PerformanceCounterPermissionAttribute.cs
- DialogResultConverter.cs
- StylusCaptureWithinProperty.cs
- DbParameterHelper.cs
- MetadataItemCollectionFactory.cs
- SafeCryptoHandles.cs
- BitVector32.cs
- BindingCollection.cs
- EFTableProvider.cs
- Sentence.cs
- FormsAuthenticationTicket.cs
- ObjectDataSourceChooseTypePanel.cs
- EarlyBoundInfo.cs
- TextRenderer.cs
- Internal.cs
- OdbcCommandBuilder.cs
- GlyphCache.cs
- ExtensionDataReader.cs
- XmlIterators.cs
- ChannelManager.cs
- TextReader.cs
- ObjectCache.cs
- SmtpTransport.cs
- TableRow.cs
- BitArray.cs
- DbDataReader.cs
- CqlIdentifiers.cs
- SafeHandles.cs
- X509Utils.cs
- HitTestParameters.cs
- BoundField.cs
- ConfigXmlComment.cs
- RawStylusInputReport.cs
- ResumeStoryboard.cs
- XmlDataSource.cs
- CellIdBoolean.cs
- LightweightCodeGenerator.cs
- ProtocolsConfigurationHandler.cs
- MetadataArtifactLoaderCompositeResource.cs
- ActivityTypeDesigner.xaml.cs
- FolderBrowserDialogDesigner.cs
- Preprocessor.cs
- Currency.cs
- XMLDiffLoader.cs
- Scalars.cs