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
- ControlValuePropertyAttribute.cs
- AspNetHostingPermission.cs
- PointLightBase.cs
- DateTimeConverter.cs
- ListParagraph.cs
- Polygon.cs
- GridView.cs
- ManualResetEvent.cs
- SchemaNames.cs
- Cell.cs
- InternalPolicyElement.cs
- SoapEnvelopeProcessingElement.cs
- MarshalDirectiveException.cs
- CommandSet.cs
- LoginUtil.cs
- BitmapData.cs
- WebServiceHostFactory.cs
- FileSecurity.cs
- UserValidatedEventArgs.cs
- PointLight.cs
- SpotLight.cs
- _NestedMultipleAsyncResult.cs
- CommandDevice.cs
- Pens.cs
- DummyDataSource.cs
- PropertyTab.cs
- TimersDescriptionAttribute.cs
- Package.cs
- FixedFindEngine.cs
- DriveInfo.cs
- DocumentXmlWriter.cs
- SizeAnimationBase.cs
- NetworkInterface.cs
- LinkLabel.cs
- NumberFunctions.cs
- XmlSerializerFactory.cs
- NavigationWindowAutomationPeer.cs
- HwndSourceKeyboardInputSite.cs
- DesignerActionGlyph.cs
- LiteralSubsegment.cs
- CatalogPart.cs
- ClientRolePrincipal.cs
- ColorAnimationBase.cs
- PathSegment.cs
- XmlArrayAttribute.cs
- MediaElementAutomationPeer.cs
- XmlSchemaInferenceException.cs
- Image.cs
- FontInfo.cs
- RegionInfo.cs
- DataRow.cs
- SelectionItemPatternIdentifiers.cs
- BuildProvidersCompiler.cs
- ProgressBarRenderer.cs
- ProfileBuildProvider.cs
- EventLogPermissionEntryCollection.cs
- XmlSchemaValidator.cs
- FormViewDesigner.cs
- DataColumnMappingCollection.cs
- Soap.cs
- IntAverageAggregationOperator.cs
- ProtocolException.cs
- MessageDirection.cs
- ExtendedPropertyCollection.cs
- DifferencingCollection.cs
- FontDriver.cs
- SQLGuidStorage.cs
- DocumentApplication.cs
- IImplicitResourceProvider.cs
- WebHttpEndpoint.cs
- FileDialogPermission.cs
- SoapHeaderAttribute.cs
- MemberPath.cs
- BaseTemplateParser.cs
- ResourceDisplayNameAttribute.cs
- FillErrorEventArgs.cs
- RedirectionProxy.cs
- UnknownWrapper.cs
- CapabilitiesSection.cs
- SafeCoTaskMem.cs
- ViewStateModeByIdAttribute.cs
- _RequestCacheProtocol.cs
- UidPropertyAttribute.cs
- BlurBitmapEffect.cs
- Thickness.cs
- DataGridParentRows.cs
- ContextMenu.cs
- SessionStateItemCollection.cs
- PropertyItem.cs
- QueryConverter.cs
- StylusPointPropertyInfoDefaults.cs
- HelpKeywordAttribute.cs
- BamlBinaryReader.cs
- Splitter.cs
- Brushes.cs
- OutputCacheProfile.cs
- ControlParameter.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- _AutoWebProxyScriptWrapper.cs
- LocalizationComments.cs