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
- SmiGettersStream.cs
- ConcurrentBag.cs
- ALinqExpressionVisitor.cs
- Section.cs
- RectangleGeometry.cs
- CheckBoxList.cs
- DataViewSettingCollection.cs
- XmlSchemaSimpleTypeList.cs
- CommentEmitter.cs
- ListDictionaryInternal.cs
- ComboBoxItem.cs
- NominalTypeEliminator.cs
- StandardToolWindows.cs
- StorageModelBuildProvider.cs
- XmlSerializerVersionAttribute.cs
- HtmlInputFile.cs
- InvariantComparer.cs
- MatrixTransform.cs
- DesignerTransactionCloseEvent.cs
- DataGridViewCellParsingEventArgs.cs
- ContextMenu.cs
- CipherData.cs
- UrlMappingCollection.cs
- __Filters.cs
- _DigestClient.cs
- dtdvalidator.cs
- objectresult_tresulttype.cs
- Matrix3DValueSerializer.cs
- ParameterBuilder.cs
- CLSCompliantAttribute.cs
- oledbconnectionstring.cs
- Substitution.cs
- QueryableFilterUserControl.cs
- PageCodeDomTreeGenerator.cs
- XmlSchemaChoice.cs
- _BaseOverlappedAsyncResult.cs
- AndCondition.cs
- HtmlInputSubmit.cs
- HScrollProperties.cs
- ExpandButtonVisibilityConverter.cs
- TextStore.cs
- RemoteWebConfigurationHostServer.cs
- XmlJsonWriter.cs
- BindingElementCollection.cs
- XmlCDATASection.cs
- PropertyDescriptorGridEntry.cs
- Sentence.cs
- BindToObject.cs
- SmiEventSink_DeferedProcessing.cs
- WorkflowServiceOperationListItem.cs
- DbMetaDataColumnNames.cs
- PersistenceProviderDirectory.cs
- _UriTypeConverter.cs
- XmlLinkedNode.cs
- XmlCharType.cs
- TimeSpanMinutesConverter.cs
- ArrayList.cs
- OleDbMetaDataFactory.cs
- SQLBytes.cs
- PassportAuthenticationEventArgs.cs
- UnmanagedMemoryStream.cs
- DataGridToolTip.cs
- PenLineCapValidation.cs
- NestedContainer.cs
- ChameleonKey.cs
- Rules.cs
- SqlClientWrapperSmiStream.cs
- ReaderWriterLockWrapper.cs
- Polygon.cs
- PairComparer.cs
- TrustLevelCollection.cs
- DispatcherFrame.cs
- TouchDevice.cs
- XsltInput.cs
- ThreadStaticAttribute.cs
- TextSegment.cs
- SdlChannelSink.cs
- XPathNode.cs
- SerialPort.cs
- HtmlHead.cs
- XmlWriter.cs
- ClipboardData.cs
- OdbcEnvironment.cs
- ResourceReferenceExpressionConverter.cs
- InvokeProviderWrapper.cs
- ChangePassword.cs
- EUCJPEncoding.cs
- PropertyFilterAttribute.cs
- SettingsPropertyNotFoundException.cs
- RegexMatchCollection.cs
- RepeaterItem.cs
- SafeEventLogWriteHandle.cs
- XPathNavigatorReader.cs
- TextTreeUndo.cs
- XmlSchemaSimpleType.cs
- XmlAttribute.cs
- ScriptingJsonSerializationSection.cs
- AutoScrollExpandMessageFilter.cs
- OleDbFactory.cs
- SpecialFolderEnumConverter.cs