CreateDictionaryTypeInfo<TDictionary, TValue>(TomlSerializerContext) Method

Definition

Assembly Tomlyn.dll

Creates metadata for a dictionary-like type with string keys.

[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.")]
protected static TomlTypeInfo<TDictionary> CreateDictionaryTypeInfo<TDictionary, TValue>(TomlSerializerContext context)
    where TDictionary : IEnumerable<KeyValuePair<string, TValue>>

Type parameters

TDictionary
TValue

Parameters

Returns