-
-
Notifications
You must be signed in to change notification settings - Fork 277
Open
Description
Bug Description
In .NET 10 preview6, System.Collections.BitArray had the following internal layout:
public sealed class BitArray : ICollection, ICloneable
{
private int[] m_array; // Do not rename (binary serialization)
private int m_length; // Do not rename (binary serialization)
private int _version; // Do not rename (binary serialization)
}In .NET 10 rc1, it was changed to:
public sealed class BitArray : ICollection, ICloneable, ISerializable
{
internal byte[] _array;
private int _bitLength;
private int _version;
}This internal breaking change causes incompatibility for MemoryPack when serializing/deserializing BitArray between preview6 and rc1.
internal class BitArrayView
{
public int[] m_array;
public int m_length;
public int _version;
}
If dotnet10 (after preview6) Deserialize the data program serialized by dotnet9, it will crash!
Metadata
Metadata
Assignees
Labels
No labels