CreateSourceGeneratedNullableTypeInfo(TomlSerializerContext) Method

Definition

Assembly Tomlyn.dll

Creates metadata for a nullable value type (Nullable<T>) using source-generated resolution for the underlying value type.

protected static TomlTypeInfo<T?> CreateSourceGeneratedNullableTypeInfo<T>(TomlSerializerContext context)
    where T : struct

Type parameters

T

Parameters

Returns

Remarks

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