Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- MiniParameterInfo.cs
- SqlDataReaderSmi.cs
- DataPagerFieldItem.cs
- SqlConnectionStringBuilder.cs
- TextSelectionHighlightLayer.cs
- ToolStripItem.cs
- CompositionAdorner.cs
- XmlSchemaException.cs
- EventLogPermissionEntry.cs
- ExceptionUtility.cs
- FilteredDataSetHelper.cs
- GlyphRunDrawing.cs
- DataServiceRequest.cs
- InputGestureCollection.cs
- EntityContainerRelationshipSet.cs
- UseLicense.cs
- CachingHintValidation.cs
- HandleRef.cs
- SystemDropShadowChrome.cs
- ListChunk.cs
- BufferedWebEventProvider.cs
- KeyPullup.cs
- TrailingSpaceComparer.cs
- MarkupCompilePass1.cs
- AsyncCodeActivity.cs
- XMLDiffLoader.cs
- XPathAxisIterator.cs
- DataListItemCollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- OleDbPropertySetGuid.cs
- Menu.cs
- ParserContext.cs
- WebBrowserPermission.cs
- PhoneCall.cs
- XmlBufferReader.cs
- RegistrySecurity.cs
- MatrixStack.cs
- IfJoinedCondition.cs
- SamlEvidence.cs
- ToolStripSettings.cs
- DataControlFieldCell.cs
- DoubleLink.cs
- XmlChoiceIdentifierAttribute.cs
- MappingMetadataHelper.cs
- PipelineModuleStepContainer.cs
- ConnectAlgorithms.cs
- DashStyle.cs
- prompt.cs
- ValidationVisibilityAttribute.cs
- HScrollBar.cs
- XmlUtilWriter.cs
- VScrollProperties.cs
- ChangeProcessor.cs
- TypeConverterAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SafeReversePInvokeHandle.cs
- WebPartTracker.cs
- EventNotify.cs
- AdRotatorDesigner.cs
- CreateUserWizard.cs
- XsdDateTime.cs
- WindowsBrush.cs
- DescendantOverDescendantQuery.cs
- BrowserDefinitionCollection.cs
- RecognizeCompletedEventArgs.cs
- XmlTypeMapping.cs
- DataRelationCollection.cs
- WebPermission.cs
- SerializationInfo.cs
- TreeViewEvent.cs
- ImplicitInputBrush.cs
- NetPeerTcpBindingCollectionElement.cs
- UInt64Storage.cs
- SafeRightsManagementHandle.cs
- CodeFieldReferenceExpression.cs
- webclient.cs
- ADConnectionHelper.cs
- DrawingBrush.cs
- TextEditorLists.cs
- Object.cs
- ActiveXHelper.cs
- CompModSwitches.cs
- Size3DValueSerializer.cs
- LeftCellWrapper.cs
- Suspend.cs
- XsdBuilder.cs
- ChangeProcessor.cs
- TypographyProperties.cs
- ReadOnlyAttribute.cs
- PopupRootAutomationPeer.cs
- ItemList.cs
- Grammar.cs
- ConstraintStruct.cs
- XmlILModule.cs
- ApplicationDirectory.cs
- GridViewColumnHeader.cs
- Point4D.cs
- ScaleTransform3D.cs
- PrintDialogException.cs