Deserialize(TextReader, TomlSerializerOptions?) Method

Definition

Namespace Tomlyn
Assembly Tomlyn.dll

Deserializes a TOML payload from a text reader.

[RequiresUnreferencedCode("Reflection-based TOML serialization is not compatible with trimming/NativeAOT. Use a source-generated TomlSerializerContext or pass a TomlTypeInfo instance.")]
[RequiresDynamicCode("Reflection-based TOML serialization is not compatible with trimming/NativeAOT. Use a source-generated TomlSerializerContext or pass a TomlTypeInfo instance.")]
public static T? Deserialize<T>(TextReader reader, TomlSerializerOptions? options = null)

Type parameters

T

Parameters

reader
TextReader

Returns

{T}