Our IPropertyBag implementations rely on BinaryFormatter to serialize to and from a Hashtable/IStream. AxHost.PropertyBagStream and Control.ActiveXImpl.PropertyBagStream are the implementations.
In most of the places we've removed BinaryFormatter we've relied on TypeConverter to convert to/from either string or byte[]. The idea here is to serialize to/from JSON (using System.Text.Json) with this same dependency on TypeConverter. If there is no such TypeConverter for a given type, it would be ignored. Working around this breaking change would require writing and registering a TypeConverter that supports one of these two formats.
#7986 is a related change.
cc: @GrabYourPitchforks
Our
IPropertyBagimplementations rely onBinaryFormatterto serialize to and from aHashtable/IStream.AxHost.PropertyBagStreamandControl.ActiveXImpl.PropertyBagStreamare the implementations.In most of the places we've removed
BinaryFormatterwe've relied onTypeConverterto convert to/from eitherstringorbyte[]. The idea here is to serialize to/from JSON (using System.Text.Json) with this same dependency onTypeConverter. If there is no suchTypeConverterfor a given type, it would be ignored. Working around this breaking change would require writing and registering aTypeConverterthat supports one of these two formats.#7986 is a related change.
cc: @GrabYourPitchforks