Class ConstructorArgumentAttribute
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
- Inheritance
-
ConstructorArgumentAttribute
Constructors
- ConstructorArgumentAttribute(string)
Constructor for an ConstructorArgumentAttribute
Properties
- ArgumentName
Name of the constructor argument that will initialize this property