BinarySerializer icon indicating copy to clipboard operation
BinarySerializer copied to clipboard

`MemberSerialized`/`MemberDeserialized` are still called despite `[SerializeWhen]`

Open xchellx opened this issue 4 years ago • 0 comments

When [SerializeWhen] evaluates to false, it does not serialize/deserialize the value yet the MemberSerialized/MemberDeserialized events still get called for the members that have a falsified [SerializeWhen]. This is undefined behavior. Reproducible example: bintest1

xchellx avatar Jan 16 '22 06:01 xchellx