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

XmlChoiceIdentifierAttribute

Specifies that the member can be further detected by using an enumeration.
public string MemberName { get; set; }

Gets or sets the name of the field that returns the enumeration to use when detecting types.

Initializes a new instance of the XmlChoiceIdentifierAttribute class.

public XmlChoiceIdentifierAttribute(string name)

Initializes a new instance of the XmlChoiceIdentifierAttribute class.