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

XmlAttributeOverrides

public class XmlAttributeOverrides
Allows you to override property, field, and class attributes when you use the XmlSerializer to serialize or deserialize an object.
public XmlAttributes this[Type type] { get; }

Gets the object associated with the specified, base-class, type.

public XmlAttributes this[Type type, string member] { get; }

Gets the object associated with the specified (base-class) type. The member parameter specifies the base-class member that is overridden.

Initializes a new instance of the XmlAttributeOverrides class.

public void Add(Type type, XmlAttributes attributes)

Adds an XmlAttributes object to the collection of XmlAttributes objects. The type parameter specifies an object to be overridden by the XmlAttributes object.

public void Add(Type type, string member, XmlAttributes attributes)

Adds an XmlAttributes object to the collection of XmlAttributes objects. The type parameter specifies an object to be overridden. The member parameter specifies the name of a member that is overridden.