<PackageReference Include="System.Private.DataContractSerialization" Version="4.1.1-rc2-24027" />

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; }