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

XmlSerializerNamespaces

Contains the XML namespaces and prefixes that the XmlSerializer uses to generate qualified names in an XML-document instance.
public int Count { get; }

Gets the number of prefix and namespace pairs in the collection.

Initializes a new instance of the XmlSerializerNamespaces class.

Initializes a new instance of the XmlSerializerNamespaces class, using the specified instance of XmlSerializerNamespaces containing the collection of prefix and namespace pairs.

Initializes a new instance of the XmlSerializerNamespaces class.

public void Add(string prefix, string ns)

Adds a prefix and namespace pair to an XmlSerializerNamespaces object.

Gets the array of prefix and namespace pairs in an XmlSerializerNamespaces object.