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
- MultiView.cs
- MulticastDelegate.cs
- DbTransaction.cs
- TransformationRules.cs
- TextRangeEditLists.cs
- WorkflowOperationInvoker.cs
- KeyEventArgs.cs
- ErrorFormatter.cs
- LogReservationCollection.cs
- IndependentAnimationStorage.cs
- SqlSelectClauseBuilder.cs
- KeyMatchBuilder.cs
- StorageEndPropertyMapping.cs
- EmbeddedMailObject.cs
- ResourceContainer.cs
- PaintEvent.cs
- BitmapImage.cs
- CharKeyFrameCollection.cs
- ListViewItemEventArgs.cs
- ColorAnimationBase.cs
- FileLevelControlBuilderAttribute.cs
- EntitySetDataBindingList.cs
- UnsupportedPolicyOptionsException.cs
- DoubleCollectionValueSerializer.cs
- DataGridTemplateColumn.cs
- TextWriter.cs
- SessionSwitchEventArgs.cs
- WebServiceTypeData.cs
- StaticSiteMapProvider.cs
- X509Chain.cs
- Emitter.cs
- httpserverutility.cs
- LineServicesRun.cs
- FeatureSupport.cs
- AddressAccessDeniedException.cs
- AssociationSetMetadata.cs
- EnumConverter.cs
- PartEditor.cs
- MetadataCache.cs
- ThreadExceptionDialog.cs
- TemplateField.cs
- PropertyTab.cs
- Psha1DerivedKeyGenerator.cs
- WorkflowApplicationCompletedException.cs
- FastPropertyAccessor.cs
- ArgumentException.cs
- QueryOpcode.cs
- WinFormsComponentEditor.cs
- FramingDecoders.cs
- Permission.cs
- sqlcontext.cs
- TemplateControlCodeDomTreeGenerator.cs
- NonParentingControl.cs
- Convert.cs
- ExitEventArgs.cs
- BitmapData.cs
- ToolStripDropDownClosedEventArgs.cs
- TableRow.cs
- ComplexTypeEmitter.cs
- XmlSchemaComplexContentExtension.cs
- EntityContainer.cs
- Win32.cs
- PageCatalogPart.cs
- ApplicationContext.cs
- LicenseProviderAttribute.cs
- HandleExceptionArgs.cs
- ComAwareEventInfo.cs
- MetadataProperty.cs
- CopyAttributesAction.cs
- BitVec.cs
- Item.cs
- ProfileGroupSettings.cs
- PriorityRange.cs
- DataList.cs
- DbTransaction.cs
- PartialTrustVisibleAssembly.cs
- TypeGeneratedEventArgs.cs
- FormsAuthentication.cs
- TextPattern.cs
- querybuilder.cs
- ProbeMatchesMessageCD1.cs
- DBConnection.cs
- CellPartitioner.cs
- EventlogProvider.cs
- DynamicDocumentPaginator.cs
- ExecutedRoutedEventArgs.cs
- AnchoredBlock.cs
- WebPartChrome.cs
- ClientSideQueueItem.cs
- SID.cs
- Int16Converter.cs
- AnonymousIdentificationModule.cs
- CallTemplateAction.cs
- BamlMapTable.cs
- XamlDesignerSerializationManager.cs
- FixedBufferAttribute.cs
- ProgressBarRenderer.cs
- BookmarkScope.cs
- Pair.cs
- DrawingVisualDrawingContext.cs