Class XmlConstructorAttribute
Defines an attribute to set the serializer to use a different constructor than the default constructor.
Inherited Members
Namespace: NMF.Serialization
Assembly: NMF.Serialization.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public sealed class XmlConstructorAttribute : Attribute
Constructors
| Edit this page View SourceXmlConstructorAttribute(int)
Creates a new XmlConstructorAttribute to get the serializer to use a different constructor than the default constructor
Declaration
public XmlConstructorAttribute(int parameterCount)
Parameters
Type | Name | Description |
---|---|---|
int | parameterCount | The amount of parameters to use |
Properties
| Edit this page View SourceParameterCount
Gets the amount of constructor parameters
Declaration
public int ParameterCount { get; }
Property Value
Type | Description |
---|---|
int |