Skip to content

SYSLIB0050: Formatter-based serialization is obsolete #110

@atlemann

Description

@atlemann

NET8.0 has marked a bunch of serializable interfaces as obsolete, which will be removed in NET9.0. I guess this means this library won't work anymore when clients eventually upgrade their apps NET9.0?

It seems to be mostly an issue with the non low trust version and the use of IObjectReference interface and other things from FormatterServices

The System.Runtime.Serialization.FormatterServices.GetUninitializedObject method can be replaced with System.Runtime.CompilerServices.RuntimeHelpers.GetUninitializedObject, but not sure about the custom Cloning and CharStream classes.

And those classes are doing some dark magic and don't seem trivial to replace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions