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
- FlowDocumentScrollViewerAutomationPeer.cs
- BufferedReadStream.cs
- ObjRef.cs
- Stackframe.cs
- ScalarOps.cs
- EllipseGeometry.cs
- DesignConnection.cs
- WebConfigManager.cs
- AsyncPostBackTrigger.cs
- AsymmetricCryptoHandle.cs
- HttpConfigurationSystem.cs
- LocatorPart.cs
- ScriptBehaviorDescriptor.cs
- WebPartDescription.cs
- NameValueConfigurationCollection.cs
- DeferrableContentConverter.cs
- XsltException.cs
- MessageDecoder.cs
- OrderedEnumerableRowCollection.cs
- SettingsPropertyValue.cs
- DataKey.cs
- Speller.cs
- ParentUndoUnit.cs
- __TransparentProxy.cs
- ConfigXmlText.cs
- TextAnchor.cs
- FormViewPageEventArgs.cs
- ElementMarkupObject.cs
- SchemaMapping.cs
- CacheSection.cs
- WebSysDescriptionAttribute.cs
- SQLDecimalStorage.cs
- Win32Exception.cs
- FontFaceLayoutInfo.cs
- XmlSchemaExternal.cs
- ComboBoxAutomationPeer.cs
- TextLine.cs
- validation.cs
- Timer.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- RequestBringIntoViewEventArgs.cs
- EDesignUtil.cs
- SoapIgnoreAttribute.cs
- ChannelParameterCollection.cs
- NegatedCellConstant.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PerformanceCounterLib.cs
- SystemInformation.cs
- MsmqInputSessionChannelListener.cs
- UnsafeNativeMethods.cs
- WindowsListViewGroupHelper.cs
- ModelToObjectValueConverter.cs
- WebContentFormatHelper.cs
- DeferredTextReference.cs
- CompilerLocalReference.cs
- FileLoadException.cs
- DecimalConstantAttribute.cs
- SystemInfo.cs
- VoiceSynthesis.cs
- Style.cs
- ConversionContext.cs
- FlowDocumentScrollViewer.cs
- ReadingWritingEntityEventArgs.cs
- InvalidPrinterException.cs
- Merger.cs
- WebControlsSection.cs
- QilVisitor.cs
- PopupControlService.cs
- XPathDocumentIterator.cs
- AnnouncementEndpoint.cs
- TextTreeTextElementNode.cs
- IBuiltInEvidence.cs
- SplitterDesigner.cs
- Timer.cs
- SemanticResultValue.cs
- BamlRecordWriter.cs
- IList.cs
- ByteKeyFrameCollection.cs
- SettingsPropertyValue.cs
- SecurityPermission.cs
- StorageRoot.cs
- AlphaSortedEnumConverter.cs
- PointLightBase.cs
- ImageFormatConverter.cs
- IEnumerable.cs
- EndPoint.cs
- DBParameter.cs
- ToolConsole.cs
- ADMembershipProvider.cs
- TypeResolver.cs
- RadioButton.cs
- UniqueEventHelper.cs
- PersistChildrenAttribute.cs
- ISCIIEncoding.cs
- DataGridViewRowsRemovedEventArgs.cs
- ConfigurationStrings.cs
- JsonClassDataContract.cs
- Win32PrintDialog.cs
- BindingMAnagerBase.cs
- ArraySubsetEnumerator.cs