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

XmlAnyElementAttribute

Specifies that the member (a field that returns an array of XmlElement or XmlNode objects) contains objects that represent any XML element that has no corresponding member in the object being serialized or deserialized.
public string Name { get; set; }

Gets or sets the XML element name.

public string Namespace { get; set; }

Gets or sets the XML namespace generated in the XML document.

public int Order { get; set; }

Gets or sets the explicit order in which the elements are serialized or deserialized.

Initializes a new instance of the XmlAnyElementAttribute class.

public XmlAnyElementAttribute(string name)

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

public XmlAnyElementAttribute(string name, string ns)

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