CreateSourceGeneratedDictionaryTypeInfo<TDictionary, TValue>(TomlSerializerContext) Method

Definition

Assembly Tomlyn.dll

Creates metadata for a dictionary-like type with string keys using source-generated resolution for nested values.

protected static TomlTypeInfo<TDictionary> CreateSourceGeneratedDictionaryTypeInfo<TDictionary, TValue>(TomlSerializerContext context)
    where TDictionary : IEnumerable<KeyValuePair<string, TValue>>

Type parameters

TDictionary
TValue

Parameters

Returns

Remarks

This method avoids reflection-based metadata resolution, making it compatible with trimming and NativeAOT.