Skip to content

Code for serialization using sgen makes use of single file dangerous patterns #50820

Description

@tlakollo

Description

File Compilation.cs makes use of single file dangerous pattern inside function LoadGeneratedAssembly. Depending on the SerializationMode set we could end up throwing an exception or returning null. If returning null, the code will most likely fall back to reflection and just be slower. Since this code is most likely fixable, the warning will be suppressed in code with a reference to this issue until this gets fixed.

cc: @agocke

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions