Skip to content

Deserializing System.Collections.Immutable types with JsonSerializer is not linker safe #38593

@layomia

Description

@layomia

A NullReferenceException is thrown when deserialization of any of these collection types is attempted, due to the various CreateRange methods being trimmed out e.g. https://docs.microsoft.com/dotnet/api/system.collections.immutable.immutablelist.createrange.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions