Closed inethui closed 2 years ago
If I change the test to the followings, I get another error from the DeepClone method: System.InvalidProgramException : Common Language Runtime detected an invalid program.
[Fact]
public void TestNamedTuples()
{
(int Number1, int? Number2) obj = (1, 2);
var clone = Serializer.DeepClone(obj);
Assert.Equal(clone.Number1, obj.Number1);
Assert.Equal(clone.Number2, obj.Number2);
}
BTW, the above code works for Protobuf-net.
Probably value tuples are not supported yet. It's the next thing to fix.
This is fixed in develop branch, please check.
I've verified that this issue is fixed in develop branch.
The following test throws AqlaSerializer.ProtoException : AqlaSerializer.ProtoException : Invalid serialization operation with wire-type None, waiting for wire type of field number 2, position 5
Any idea why? Thanks