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.
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.GetUninitializedObjectmethod can be replaced withSystem.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.