<PackageReference Include="System.ClientModel" Version="1.8.1" />

System.ClientModel.Primitives.ModelReaderWriterContext

public abstract class ModelReaderWriterContext
Context for ModelReaderWriter to work with AOT.

Gets a ModelReaderWriterTypeBuilder for the given Type to allow ModelReaderWriter to work with AOT.

public bool TryGetTypeBuilder(Type type, out ModelReaderWriterTypeBuilder builder)

Tries to gets a ModelReaderWriterTypeBuilder for the given Type to allow ModelReaderWriter to work with AOT.

protected virtual bool TryGetTypeBuilderCore(Type type, out ModelReaderWriterTypeBuilder builder)

Tries to gets a ModelReaderWriterTypeBuilder for the given Type to allow ModelReaderWriter to work with AOT.