Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SmiSettersStream.cs
- TraceLevelStore.cs
- SeverityFilter.cs
- PathFigureCollectionConverter.cs
- PropertyBuilder.cs
- SparseMemoryStream.cs
- ToolZone.cs
- PrePrepareMethodAttribute.cs
- InputManager.cs
- ListItem.cs
- EllipticalNodeOperations.cs
- PathFigureCollection.cs
- serverconfig.cs
- SmtpReplyReader.cs
- InteropBitmapSource.cs
- Style.cs
- FormatConvertedBitmap.cs
- HttpCookiesSection.cs
- TypeCacheManager.cs
- Substitution.cs
- InfoCardSymmetricCrypto.cs
- ChangeConflicts.cs
- TextEvent.cs
- PathTooLongException.cs
- DataGridViewRowEventArgs.cs
- PrivateFontCollection.cs
- Group.cs
- Nullable.cs
- TextCompositionManager.cs
- HttpCacheParams.cs
- WebConvert.cs
- DefaultTextStore.cs
- MissingFieldException.cs
- SafeNativeMethodsCLR.cs
- HuffCodec.cs
- ContractCodeDomInfo.cs
- XmlSchemaGroup.cs
- WinHttpWebProxyFinder.cs
- TagPrefixCollection.cs
- CollectionType.cs
- PropertyTab.cs
- XPathItem.cs
- ButtonFieldBase.cs
- WebPartTracker.cs
- DetailsViewUpdateEventArgs.cs
- NodeInfo.cs
- bindurihelper.cs
- TextEvent.cs
- Overlapped.cs
- BeginEvent.cs
- MessageDesigner.cs
- ListViewContainer.cs
- ReadOnlyCollection.cs
- ChameleonKey.cs
- ControlIdConverter.cs
- SetterTriggerConditionValueConverter.cs
- ResourceAssociationSetEnd.cs
- ReflectionUtil.cs
- Trace.cs
- FontEmbeddingManager.cs
- ColumnTypeConverter.cs
- DataGridColumn.cs
- ModelPropertyImpl.cs
- ObjectRef.cs
- SafeRightsManagementQueryHandle.cs
- ParseChildrenAsPropertiesAttribute.cs
- StylusPointPropertyUnit.cs
- AppSettingsExpressionBuilder.cs
- ToolbarAUtomationPeer.cs
- CultureInfoConverter.cs
- DoubleAnimationUsingKeyFrames.cs
- GenericPrincipal.cs
- ADRoleFactoryConfiguration.cs
- MetadataException.cs
- TemplateComponentConnector.cs
- FSWPathEditor.cs
- ToolStripScrollButton.cs
- UserControlBuildProvider.cs
- OdbcReferenceCollection.cs
- BinaryParser.cs
- CustomBindingElementCollection.cs
- AnchoredBlock.cs
- DataControlCommands.cs
- ExceptionValidationRule.cs
- WinFormsSpinner.cs
- DocumentViewerBase.cs
- ScriptIgnoreAttribute.cs
- itemelement.cs
- CriticalFinalizerObject.cs
- DataGridViewControlCollection.cs
- Padding.cs
- _PooledStream.cs
- RC2.cs
- DataListItemEventArgs.cs
- TCPClient.cs
- TextRangeEditLists.cs
- SQLDateTimeStorage.cs
- TextEffect.cs
- FormViewUpdateEventArgs.cs
- FormViewDeleteEventArgs.cs