CreateImmutableArrayTypeInfo(TomlSerializerContext) Method

Definition

Assembly Tomlyn.dll

Creates metadata for System.Collections.Immutable.ImmutableArray`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<ImmutableArray<TElement>> CreateImmutableArrayTypeInfo<TElement>(TomlSerializerContext context)

Type parameters

TElement

Parameters

Returns