Deserialize(String, TomlSerializerOptions?) Method

Definition

Namespace Tomlyn
Assembly Tomlyn.dll

Deserializes a TOML payload from text.

[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>(string toml, TomlSerializerOptions? options = null)

Type parameters

T

Parameters

toml
String

Returns

{T}