<PackageReference Include="System.Private.DataContractSerialization" Version="4.3.0-preview1-24530-04" />

System.Runtime.Serialization.DataContractSerializerSettings

public IEnumerable<Type> KnownTypes { get; set; }

public int MaxItemsInObjectGraph { get; set; }

public bool PreserveObjectReferences { get; set; }

public XmlDictionaryString RootName { get; set; }

public XmlDictionaryString RootNamespace { get; set; }

public bool SerializeReadOnlyTypes { get; set; }