File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/MsgPack/Serialization/Polymorphic Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -657,3 +657,4 @@ Release 0.9.0 RC1 T.B.D
657657 * Fix asynchronous multi dimensional array deserialization corruption.
658658 * Fix enum serialization throws NullReferenceException in Unity. Issue #215.
659659 * Fix MessagePackSerializer.Capability does not work correctly in Unity.
660+ * Fix polymorphic serializer error in Unity.
Original file line number Diff line number Diff line change 1- #region -- License Terms --
1+ #region -- License Terms --
22//
33// MessagePack for CLI
44//
@@ -46,6 +46,7 @@ public PolymorphicSerializerProvider( MessagePackSerializer<T> defaultSerializer
4646 public PolymorphicSerializerProvider ( SerializationContext context , MessagePackSerializer defaultSerializer )
4747 {
4848 this . _defaultSerializer = MessagePackSerializer . Wrap < T > ( context , defaultSerializer ) ;
49+ this . _defaultSchema = PolymorphismSchema . Create ( typeof ( T ) , null ) ;
4950 }
5051#endif
5152
You can’t perform that action at this time.
0 commit comments