CreateHashSetBackedEnumerableTypeInfo<TEnumerable, TElement>(TomlSerializerContext) Method

Definition

Assembly Tomlyn.dll

Creates metadata for a set-like interface type backed by 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<TEnumerable> CreateHashSetBackedEnumerableTypeInfo<TEnumerable, TElement>(TomlSerializerContext context)
    where TEnumerable : IEnumerable<TElement>

Type parameters

TEnumerable
TElement

Parameters

Returns