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
- OpCodes.cs
- FirstMatchCodeGroup.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- EmptyWithCancelationCheckWorkItem.cs
- SlipBehavior.cs
- SqlDataSourceCache.cs
- SamlSecurityToken.cs
- Stack.cs
- EntryWrittenEventArgs.cs
- Tokenizer.cs
- CreateUserWizardStep.cs
- ActivityCodeDomSerializer.cs
- FlowDocumentFormatter.cs
- HtmlInputControl.cs
- OdbcStatementHandle.cs
- DateTimeUtil.cs
- TransformerInfoCollection.cs
- InvalidOleVariantTypeException.cs
- ToolStripItemClickedEventArgs.cs
- COM2PropertyDescriptor.cs
- QuaternionRotation3D.cs
- SharedDp.cs
- XmlnsPrefixAttribute.cs
- Thread.cs
- ProtectedConfigurationProviderCollection.cs
- ObjectSet.cs
- PointKeyFrameCollection.cs
- Freezable.cs
- PrintPreviewDialog.cs
- ErrorHandler.cs
- NullRuntimeConfig.cs
- ChameleonKey.cs
- SqlExpressionNullability.cs
- Pts.cs
- ProviderIncompatibleException.cs
- FormViewUpdatedEventArgs.cs
- Rules.cs
- UnsafeNativeMethods.cs
- AutoGeneratedFieldProperties.cs
- DataGridViewTextBoxColumn.cs
- PointIndependentAnimationStorage.cs
- DrawItemEvent.cs
- CacheAxisQuery.cs
- VarRemapper.cs
- SafeThreadHandle.cs
- SecureEnvironment.cs
- TreeBuilder.cs
- EditableRegion.cs
- QualificationDataItem.cs
- GeneralTransform3DGroup.cs
- DecoderFallback.cs
- ProfileWorkflowElement.cs
- FactoryRecord.cs
- SemanticResolver.cs
- ByteAnimation.cs
- PageVisual.cs
- PasswordTextContainer.cs
- CodeTypeMemberCollection.cs
- DocumentSchemaValidator.cs
- BooleanProjectedSlot.cs
- ZipIOLocalFileHeader.cs
- ResourceFallbackManager.cs
- RedistVersionInfo.cs
- DirectoryObjectSecurity.cs
- ApplicationManager.cs
- NameSpaceEvent.cs
- _NegoState.cs
- WebPartVerbCollection.cs
- MatcherBuilder.cs
- HyperLinkStyle.cs
- SymbolUsageManager.cs
- Utilities.cs
- TraceSource.cs
- OracleString.cs
- LineUtil.cs
- WorkflowWebHostingModule.cs
- StrongNamePublicKeyBlob.cs
- AssemblyCache.cs
- DataGridTextColumn.cs
- InkCanvasInnerCanvas.cs
- StrokeIntersection.cs
- DbParameterCollectionHelper.cs
- FixedDocumentSequencePaginator.cs
- LocalizableResourceBuilder.cs
- ValidationError.cs
- DataSourceView.cs
- TaiwanLunisolarCalendar.cs
- _TLSstream.cs
- MsmqInputMessagePool.cs
- ExcCanonicalXml.cs
- CodeVariableDeclarationStatement.cs
- PathSegmentCollection.cs
- EntityContainerEmitter.cs
- SiteMapSection.cs
- SystemInformation.cs
- NullReferenceException.cs
- PenCursorManager.cs
- InstallerTypeAttribute.cs
- CollectionChangeEventArgs.cs
- MenuEventArgs.cs