<PackageReference Include="System.Xml.XmlSerializer" Version="4.0.11-beta-23409" />

XmlArrayItemAttribute

Represents an attribute that specifies the derived types that the XmlSerializer can place in a serialized array.
public string DataType { get; set; }

Gets or sets the XML data type of the generated XML element.

public string ElementName { get; set; }

Gets or sets the name of the generated XML element.

public XmlSchemaForm Form { get; set; }

Gets or sets a value that indicates whether the name of the generated XML element is qualified.

public bool IsNullable { get; set; }

Gets or sets a value that indicates whether the XmlSerializer must serialize a member as an empty XML tag with the xsi:nil attribute set to true.

public string Namespace { get; set; }

Gets or sets the namespace of the generated XML element.

public int NestingLevel { get; set; }

Gets or sets the level in a hierarchy of XML elements that the XmlArrayItemAttribute affects.

public Type Type { get; set; }

Gets or sets the type allowed in an array.

Initializes a new instance of the XmlArrayItemAttribute class.

public XmlArrayItemAttribute(string elementName)

Initializes a new instance of the XmlArrayItemAttribute class and specifies the name of the XML element generated in the XML document.

Initializes a new instance of the XmlArrayItemAttribute class and specifies the Type that can be inserted into the serialized array.

public XmlArrayItemAttribute(string elementName, Type type)

Initializes a new instance of the XmlArrayItemAttribute class and specifies the name of the XML element generated in the XML document and the Type that can be inserted into the generated XML document.