<PackageReference Include="System.ClientModel" Version="1.1.0-beta.7" />

ModelReaderWriterOptions

Provides the client options for reading and writing models.
using System.Runtime.CompilerServices; namespace System.ClientModel.Primitives { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class ModelReaderWriterOptions { [System.Runtime.CompilerServices.Nullable(2)] private static ModelReaderWriterOptions s_jsonOptions; [System.Runtime.CompilerServices.Nullable(2)] private static ModelReaderWriterOptions s_xmlOptions; public static ModelReaderWriterOptions Json => s_jsonOptions ?? (s_jsonOptions = new ModelReaderWriterOptions("J")); public static ModelReaderWriterOptions Xml => s_xmlOptions ?? (s_xmlOptions = new ModelReaderWriterOptions("X")); public string Format { get; } public ModelReaderWriterOptions(string format) { Format = format; } } }