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
- DataGridRowAutomationPeer.cs
- DrawingBrush.cs
- ContainerControlDesigner.cs
- StreamGeometryContext.cs
- XmlSchemaElement.cs
- ClickablePoint.cs
- JapaneseLunisolarCalendar.cs
- UriTemplateMatch.cs
- AutomationPattern.cs
- XMLUtil.cs
- SHA1Managed.cs
- MembershipUser.cs
- CodeDirectionExpression.cs
- RowsCopiedEventArgs.cs
- SqlCommandBuilder.cs
- RepeaterItemEventArgs.cs
- RemotingServices.cs
- InfoCardBaseException.cs
- HideDisabledControlAdapter.cs
- AbsoluteQuery.cs
- CompositeFontFamily.cs
- ImageFormat.cs
- PropertyGroupDescription.cs
- OperationParameterInfoCollection.cs
- MatrixCamera.cs
- DataGridViewCellValueEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- BufferedWebEventProvider.cs
- DateTimeOffsetConverter.cs
- CqlWriter.cs
- WorkflowItemPresenter.cs
- CSharpCodeProvider.cs
- EntityReference.cs
- ContentElement.cs
- Geometry3D.cs
- SQLRoleProvider.cs
- ExpressionBindingCollection.cs
- Ipv6Element.cs
- NativeWindow.cs
- DefaultSerializationProviderAttribute.cs
- NativeMethods.cs
- SuppressMessageAttribute.cs
- SR.cs
- SpoolingTask.cs
- HiddenField.cs
- ForwardPositionQuery.cs
- SafeNativeMethods.cs
- TdsRecordBufferSetter.cs
- FixedLineResult.cs
- AuthenticationConfig.cs
- InvokeProviderWrapper.cs
- SpeechRecognizer.cs
- EntryIndex.cs
- SwitchElementsCollection.cs
- SafeTimerHandle.cs
- RowVisual.cs
- SapiGrammar.cs
- ListSortDescriptionCollection.cs
- DTCTransactionManager.cs
- XPathDocument.cs
- BufferedWebEventProvider.cs
- GorillaCodec.cs
- RegexCapture.cs
- CorrelationToken.cs
- PngBitmapEncoder.cs
- NumericUpDownAccelerationCollection.cs
- MachineKeySection.cs
- DecimalStorage.cs
- pingexception.cs
- RelOps.cs
- DbMetaDataFactory.cs
- infer.cs
- CachedPathData.cs
- TimeSpanValidatorAttribute.cs
- dtdvalidator.cs
- URI.cs
- TextDecoration.cs
- SqlServer2KCompatibilityCheck.cs
- DataControlFieldCollection.cs
- ItemCollection.cs
- LabelInfo.cs
- TreeViewHitTestInfo.cs
- XmlSchemaImport.cs
- XmlSchemaComplexContent.cs
- CardSpacePolicyElement.cs
- _ProxyChain.cs
- SqlParameter.cs
- SharedDp.cs
- BindToObject.cs
- HyperLink.cs
- LoginUtil.cs
- TextOptionsInternal.cs
- SqlSupersetValidator.cs
- HtmlTable.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Pen.cs
- HttpResponseHeader.cs
- PointCollection.cs
- AxHostDesigner.cs
- UserControlCodeDomTreeGenerator.cs