Fix inifinite loop during serializer validation (issue #74) and errors in code#76
Fix inifinite loop during serializer validation (issue #74) and errors in code#76nsentinel wants to merge 3 commits intoneuecc:masterfrom
Conversation
…lization got stuck in other case if remove IgnoreIndex attribute from abstract class neuecc#74
|
Fix stack imbalance after emitting and opcode used to create ArraySegment Stack imbalance introduced by I think You are using |
…tion of union exception error message
|
Fix inconsistent method naming used to concatenate string during creation of union exception error message Error message construction |
Fix inifinite loop during serializer validation (issue #74)
To be able to use ZeroFormatter with abstract classes with this fix the following requirements must be met:
[IgnoreFormat][Index()]with the proper index.If abstract base class used as
unionbase additional restriction must be met:[UnionKey]member during type generation and serialization code jumps to the derived class code.Maybe these restrictions should be noted in the documentation.
Fix just breaks hierarchy check loop if finds
[IgnoreFormat]attribute. Without it, loop infinitely checks base property definition if it not marked as[UnionKey]