CreateHashSetTypeInfo(TomlSerializerContext) Method

Definition

Assembly Tomlyn.dll

Creates metadata for a System.Collections.Generic.HashSet`1.

[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<HashSet<TElement>> CreateHashSetTypeInfo<TElement>(TomlSerializerContext context)

Type parameters

TElement

Parameters

Returns