System.ClientModel.Primitives.ModelReaderWriter
Provides functionality to read and write IPersistableModel<T> and IJsonModel<T>.
namespace System.ClientModel.Primitives
{
public static class ModelReaderWriter
{
public static BinaryData Write<[System.Runtime.CompilerServices.Nullable(0)] T>(T model, ModelReaderWriterOptions options = null) where T : IPersistableModel<T>;
public static BinaryData Write(object model, ModelReaderWriterOptions options = null);
public static BinaryData Write<[System.Runtime.CompilerServices.Nullable(2)] T>(T model, ModelReaderWriterOptions options, ModelReaderWriterContext context);
public static BinaryData Write(object model, ModelReaderWriterOptions options, ModelReaderWriterContext context);
public static T Read<[System.Runtime.CompilerServices.Nullable(0)] [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers((System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes)7)] T>(BinaryData data, ModelReaderWriterOptions options = null) where T : IPersistableModel<T>;
public static T Read<[System.Runtime.CompilerServices.Nullable(2)] T>(BinaryData data, ModelReaderWriterOptions options, ModelReaderWriterContext context);
public static object Read(BinaryData data, Type returnType, ModelReaderWriterOptions options = null);
public static object Read(BinaryData data, Type returnType, ModelReaderWriterOptions options, ModelReaderWriterContext context);
}
}