protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7MidPolymorphicPrivateSetterPropertyAndConstructor UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7MidPolymorphicPrivateSetterPropertyAndConstructor result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7MidPolymorphicPrivateSetterPropertyAndConstructor); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7MidPolymorphicPrivateSetterPropertyAndConstructor(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Tuple <string, string, string, MsgPack.Serialization.FileSystemEntry, string, string, string> nullable = default(System.Tuple <string, string, string, MsgPack.Serialization.FileSystemEntry, string, string, string>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { this._methodBasePolymorphicMemberTypeKnownType_Tuple_Tuple7MidPolymorphicPrivateSetterPropertyAndConstructor_set_Tuple7MidPolymorphic0.Invoke(result, new object[] { nullable }); } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Tuple_Tuple7MidPolymorphicPrivateSetterPropertyAndConstructor), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "Tuple7MidPolymorphic")) { System.Tuple <string, string, string, MsgPack.Serialization.FileSystemEntry, string, string, string> nullable1 = default(System.Tuple <string, string, string, MsgPack.Serialization.FileSystemEntry, string, string, string>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { this._methodBasePolymorphicMemberTypeKnownType_Tuple_Tuple7MidPolymorphicPrivateSetterPropertyAndConstructor_set_Tuple7MidPolymorphic0.Invoke(result, new object[] { nullable1 }); } } else { unpacker.Skip(); } } } return(result); }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictObjectKeyAndStaticItemReadWriteProperty UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictObjectKeyAndStaticItemReadWriteProperty result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictObjectKeyAndStaticItemReadWriteProperty); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictObjectKeyAndStaticItemReadWriteProperty(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.IDictionary <object, string> nullable = default(System.Collections.Generic.IDictionary <object, string>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { result.DictObjectKeyAndStaticItem = nullable; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictObjectKeyAndStaticItemReadWriteProperty), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "DictObjectKeyAndStaticItem")) { System.Collections.Generic.IDictionary <object, string> nullable1 = default(System.Collections.Generic.IDictionary <object, string>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { result.DictObjectKeyAndStaticItem = nullable1; } } else { unpacker.Skip(); } } } return(result); }
protected internal override MsgPack.Serialization.ComplexTypeWithNonSerialized UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.ComplexTypeWithNonSerialized result = default(MsgPack.Serialization.ComplexTypeWithNonSerialized); result = new MsgPack.Serialization.ComplexTypeWithNonSerialized(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); byte[] nullable = default(byte[]); if ((unpacked < itemsCount)) { nullable = MsgPack.Serialization.UnpackHelpers.UnpackBinaryValue(unpacker, typeof(MsgPack.Serialization.ComplexTypeWithNonSerialized), "Byte[] Data"); } if (((nullable == null) == false)) { result.Data = nullable; } unpacked = (unpacked + 1); System.Collections.Generic.Dictionary <System.DateTime, string> nullable0 = default(System.Collections.Generic.Dictionary <System.DateTime, string>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(1); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable0 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable0 = this._serializer1.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable0 == null) == false)) { System.Collections.Generic.Dictionary <System.DateTime, string> .Enumerator enumerator = nullable0.GetEnumerator(); System.Collections.Generic.KeyValuePair <System.DateTime, string> current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; result.History.Add(current.Key, current.Value); } } finally { enumerator.Dispose(); } } unpacked = (unpacked + 1); System.Uri nullable1 = default(System.Uri); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(2); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer2.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer2.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } } if (((nullable1 == null) == false)) { result.Source = nullable1; } unpacked = (unpacked + 1); System.Nullable <System.DateTime> nullable2 = default(System.Nullable <System.DateTime>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(3); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable2 = this._serializer4.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable1 = default(MsgPack.Unpacker); disposable1 = unpacker.ReadSubtree(); try { nullable2 = this._serializer4.UnpackFrom(disposable1); } finally { if (((disposable1 == null) == false)) { disposable1.Dispose(); } } } } if (nullable2.HasValue) { result.TimeStamp = nullable2.Value; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable3 = default(string); nullable3 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.ComplexTypeWithNonSerialized), "MemberName"); if (((nullable3 == null) == false)) { key = nullable3; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "TimeStamp")) { System.Nullable <System.DateTime> nullable7 = default(System.Nullable <System.DateTime>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable7 = this._serializer4.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable4 = default(MsgPack.Unpacker); disposable4 = unpacker.ReadSubtree(); try { nullable7 = this._serializer4.UnpackFrom(disposable4); } finally { if (((disposable4 == null) == false)) { disposable4.Dispose(); } } } if (nullable7.HasValue) { result.TimeStamp = nullable7.Value; } } else { if ((key == "Source")) { System.Uri nullable6 = default(System.Uri); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable6 = this._serializer2.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable3 = default(MsgPack.Unpacker); disposable3 = unpacker.ReadSubtree(); try { nullable6 = this._serializer2.UnpackFrom(disposable3); } finally { if (((disposable3 == null) == false)) { disposable3.Dispose(); } } } if (((nullable6 == null) == false)) { result.Source = nullable6; } } else { if ((key == "History")) { System.Collections.Generic.Dictionary <System.DateTime, string> nullable5 = default(System.Collections.Generic.Dictionary <System.DateTime, string>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable5 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable2 = default(MsgPack.Unpacker); disposable2 = unpacker.ReadSubtree(); try { nullable5 = this._serializer1.UnpackFrom(disposable2); } finally { if (((disposable2 == null) == false)) { disposable2.Dispose(); } } } if (((nullable5 == null) == false)) { System.Collections.Generic.Dictionary <System.DateTime, string> .Enumerator enumerator0 = nullable5.GetEnumerator(); System.Collections.Generic.KeyValuePair <System.DateTime, string> current0; try { for ( ; enumerator0.MoveNext(); ) { current0 = enumerator0.Current; result.History.Add(current0.Key, current0.Value); } } finally { enumerator0.Dispose(); } } } else { if ((key == "Data")) { byte[] nullable4 = default(byte[]); nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackBinaryValue(unpacker, typeof(MsgPack.Serialization.ComplexTypeWithNonSerialized), "Byte[] Data"); if (((nullable4 == null) == false)) { result.Data = nullable4; } } else { unpacker.Skip(); } } } } } } return(result); }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ReferenceReadWriteField UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ReferenceReadWriteField result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ReferenceReadWriteField); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ReferenceReadWriteField(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Version nullable = default(System.Version); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer1.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { result.Reference = nullable; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ReferenceReadWriteField), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "Reference")) { System.Version nullable1 = default(System.Version); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer1.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { result.Reference = nullable1; } } else { unpacker.Skip(); } } } return(result); }
protected internal override MsgPack.Serialization.AbstractClassListItemKnownType UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.AbstractClassListItemKnownType result = default(MsgPack.Serialization.AbstractClassListItemKnownType); result = new MsgPack.Serialization.AbstractClassListItemKnownType(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.IList <MsgPack.Serialization.AbstractFileSystemEntry> nullable = default(System.Collections.Generic.IList <MsgPack.Serialization.AbstractFileSystemEntry>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { result.Value = nullable; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.AbstractClassListItemKnownType), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "Value")) { System.Collections.Generic.IList <MsgPack.Serialization.AbstractFileSystemEntry> nullable1 = default(System.Collections.Generic.IList <MsgPack.Serialization.AbstractFileSystemEntry>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { result.Value = nullable1; } } else { unpacker.Skip(); } } } return(result); }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Dict_DictObjectItselfPrivateSetterCollectionProperty UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Dict_DictObjectItselfPrivateSetterCollectionProperty result = default(MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Dict_DictObjectItselfPrivateSetterCollectionProperty); result = new MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Dict_DictObjectItselfPrivateSetterCollectionProperty(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); object nullable = default(object); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { this._methodBasePolymorphicMemberTypeRuntimeType_Dict_DictObjectItselfPrivateSetterCollectionProperty_set_DictObjectItself0.Invoke(result, new object[] { nullable }); } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Dict_DictObjectItselfPrivateSetterCollectionProperty), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "DictObjectItself")) { object nullable1 = default(object); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { this._methodBasePolymorphicMemberTypeRuntimeType_Dict_DictObjectItselfPrivateSetterCollectionProperty_set_DictObjectItself0.Invoke(result, new object[] { nullable1 }); } } else { unpacker.Skip(); } } } return(result); }
protected internal override MsgPack.Serialization.DataMamberClass UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.DataMamberClass result = default(MsgPack.Serialization.DataMamberClass); result = new MsgPack.Serialization.DataMamberClass(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Nullable <int> nullable = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 PublicProperty"); } if (nullable.HasValue) { result.PublicProperty = nullable.Value; } unpacked = (unpacked + 1); System.Nullable <int> nullable0 = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 PublicField"); } if (nullable0.HasValue) { result.PublicField = nullable0.Value; } unpacked = (unpacked + 1); unpacker.Read(); unpacker.Read(); System.Nullable <int> nullable1 = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable1 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonPublicProperty"); } if (nullable1.HasValue) { this._methodBaseDataMamberClass_set_NonPublicProperty1.Invoke(result, new object[] { ((object)(nullable1.Value)) }); } unpacked = (unpacked + 1); System.Nullable <int> nullable2 = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonPublicField"); } if (nullable2.HasValue) { this._fieldDataMamberClass_NonPublicField0.SetValue(result, ((object)(nullable2.Value))); } unpacked = (unpacked + 1); System.Nullable <int> nullable3 = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable3 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonSerializedPublicField"); } if (nullable3.HasValue) { result.NonSerializedPublicField = nullable3.Value; } unpacked = (unpacked + 1); unpacker.Read(); System.Nullable <int> nullable4 = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonSerializedNonPublicField"); } if (nullable4.HasValue) { this._fieldDataMamberClass_NonSerializedNonPublicField1.SetValue(result, ((object)(nullable4.Value))); } unpacked = (unpacked + 1); System.Collections.Generic.List <int> nullable5 = default(System.Collections.Generic.List <int>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(9); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable5 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable5 = this._serializer1.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable5 == null) == false)) { System.Collections.Generic.List <int> .Enumerator enumerator = nullable5.GetEnumerator(); int current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; result.CollectionReadOnlyProperty.Add(current); } } finally { enumerator.Dispose(); } } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable6 = default(string); nullable6 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "MemberName"); if (((nullable6 == null) == false)) { key = nullable6; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "CollectionReadOnlyProperty")) { System.Collections.Generic.List <int> nullable13 = default(System.Collections.Generic.List <int>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable13 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable13 = this._serializer1.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable13 == null) == false)) { System.Collections.Generic.List <int> .Enumerator enumerator0 = nullable13.GetEnumerator(); int current0; try { for ( ; enumerator0.MoveNext(); ) { current0 = enumerator0.Current; result.CollectionReadOnlyProperty.Add(current0); } } finally { enumerator0.Dispose(); } } } else { if ((key == "NonSerializedNonPublicField")) { System.Nullable <int> nullable12 = default(System.Nullable <int>); nullable12 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonSerializedNonPublicField"); if (nullable12.HasValue) { this._fieldDataMamberClass_NonSerializedNonPublicField1.SetValue(result, ((object)(nullable12.Value))); } } else { if ((key == "NonSerializedPublicField")) { System.Nullable <int> nullable11 = default(System.Nullable <int>); nullable11 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonSerializedPublicField"); if (nullable11.HasValue) { result.NonSerializedPublicField = nullable11.Value; } } else { if ((key == "NonPublicField")) { System.Nullable <int> nullable10 = default(System.Nullable <int>); nullable10 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonPublicField"); if (nullable10.HasValue) { this._fieldDataMamberClass_NonPublicField0.SetValue(result, ((object)(nullable10.Value))); } } else { if ((key == "NonPublicProperty")) { System.Nullable <int> nullable9 = default(System.Nullable <int>); nullable9 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 NonPublicProperty"); if (nullable9.HasValue) { this._methodBaseDataMamberClass_set_NonPublicProperty1.Invoke(result, new object[] { ((object)(nullable9.Value)) }); } } else { if ((key == "PublicField")) { System.Nullable <int> nullable8 = default(System.Nullable <int>); nullable8 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 PublicField"); if (nullable8.HasValue) { result.PublicField = nullable8.Value; } } else { if ((key == "Alias")) { System.Nullable <int> nullable7 = default(System.Nullable <int>); nullable7 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.DataMamberClass), "Int32 PublicProperty"); if (nullable7.HasValue) { result.PublicProperty = nullable7.Value; } } else { unpacker.Skip(); } } } } } } } } } return(result); }
protected internal override MsgPack.Serialization.PlainClass UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PlainClass result = default(MsgPack.Serialization.PlainClass); result = new MsgPack.Serialization.PlainClass(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.List <int> nullable = default(System.Collections.Generic.List <int>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { System.Collections.Generic.List <int> .Enumerator enumerator = nullable.GetEnumerator(); int current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; result.CollectionReadOnlyProperty.Add(current); } } finally { enumerator.Dispose(); } } unpacked = (unpacked + 1); System.Nullable <int> nullable0 = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.PlainClass), "Int32 PublicField"); } if (nullable0.HasValue) { result.PublicField = nullable0.Value; } unpacked = (unpacked + 1); System.Nullable <int> nullable1 = default(System.Nullable <int>); if ((unpacked < itemsCount)) { nullable1 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.PlainClass), "Int32 PublicProperty"); } if (nullable1.HasValue) { result.PublicProperty = nullable1.Value; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable2 = default(string); nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PlainClass), "MemberName"); if (((nullable2 == null) == false)) { key = nullable2; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "PublicProperty")) { System.Nullable <int> nullable5 = default(System.Nullable <int>); nullable5 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.PlainClass), "Int32 PublicProperty"); if (nullable5.HasValue) { result.PublicProperty = nullable5.Value; } } else { if ((key == "PublicField")) { System.Nullable <int> nullable4 = default(System.Nullable <int>); nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker, typeof(MsgPack.Serialization.PlainClass), "Int32 PublicField"); if (nullable4.HasValue) { result.PublicField = nullable4.Value; } } else { if ((key == "CollectionReadOnlyProperty")) { System.Collections.Generic.List <int> nullable3 = default(System.Collections.Generic.List <int>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable3 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable3 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable3 == null) == false)) { System.Collections.Generic.List <int> .Enumerator enumerator0 = nullable3.GetEnumerator(); int current0; try { for ( ; enumerator0.MoveNext(); ) { current0 = enumerator0.Current; result.CollectionReadOnlyProperty.Add(current0); } } finally { enumerator0.Dispose(); } } } else { unpacker.Skip(); } } } } } return(result); }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ValueGetOnlyPropertyAndConstructor UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ValueGetOnlyPropertyAndConstructor result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ValueGetOnlyPropertyAndConstructor); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.DateTime ctorArg0 = default(System.DateTime); ctorArg0 = default(System.DateTime); System.Nullable <System.DateTime> nullable = default(System.Nullable <System.DateTime>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer2.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer2.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (nullable.HasValue) { ctorArg0 = nullable.Value; } unpacked = (unpacked + 1); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ValueGetOnlyPropertyAndConstructor(ctorArg0); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.DateTime ctorArg00 = default(System.DateTime); ctorArg00 = default(System.DateTime); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ValueGetOnlyPropertyAndConstructor), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "Value")) { System.Nullable <System.DateTime> nullable1 = default(System.Nullable <System.DateTime>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer2.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer2.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (nullable1.HasValue) { ctorArg00 = nullable1.Value; } } else { unpacker.Skip(); } } result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_Normal_ValueGetOnlyPropertyAndConstructor(ctorArg00); } return(result); }
protected override IO.Ably.OutboundMessageTraffic UnpackFromCore(MsgPack.Unpacker unpacker) { IO.Ably.OutboundMessageTraffic result = default(IO.Ably.OutboundMessageTraffic); result = new IO.Ably.OutboundMessageTraffic(); int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable4 = default(string); nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.OutboundMessageTraffic), "MemberName"); if (((nullable4 == null) == false)) { key = nullable4; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "rest")) { IO.Ably.MessageTypes nullable9 = default(IO.Ably.MessageTypes); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable9 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable8 = default(MsgPack.Unpacker); disposable8 = unpacker.ReadSubtree(); try { nullable9 = this._serializer1.UnpackFrom(disposable8); } finally { if (((disposable8 == null) == false)) { disposable8.Dispose(); } } } if (((nullable9 == null) == false)) { result.Rest = nullable9; } } else { if ((key == "realtime")) { IO.Ably.MessageTypes nullable8 = default(IO.Ably.MessageTypes); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable8 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable7 = default(MsgPack.Unpacker); disposable7 = unpacker.ReadSubtree(); try { nullable8 = this._serializer1.UnpackFrom(disposable7); } finally { if (((disposable7 == null) == false)) { disposable7.Dispose(); } } } if (((nullable8 == null) == false)) { result.Realtime = nullable8; } } else { if ((key == "webhook")) { IO.Ably.MessageTypes nullable7 = default(IO.Ably.MessageTypes); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable7 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable6 = default(MsgPack.Unpacker); disposable6 = unpacker.ReadSubtree(); try { nullable7 = this._serializer1.UnpackFrom(disposable6); } finally { if (((disposable6 == null) == false)) { disposable6.Dispose(); } } } if (((nullable7 == null) == false)) { result.Webhook = nullable7; } } else { if ((key == "all")) { IO.Ably.MessageTypes nullable5 = default(IO.Ably.MessageTypes); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable5 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable4 = default(MsgPack.Unpacker); disposable4 = unpacker.ReadSubtree(); try { nullable5 = this._serializer1.UnpackFrom(disposable4); } finally { if (((disposable4 == null) == false)) { disposable4.Dispose(); } } } if (((nullable5 == null) == false)) { result.All = nullable5; } } else { unpacker.Skip(); } } } } } return(result); }
protected override IO.Ably.TokenRequest UnpackFromCore(MsgPack.Unpacker unpacker) { IO.Ably.TokenRequest result = default(IO.Ably.TokenRequest); result = new IO.Ably.TokenRequest(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); IO.Ably.Capability nullable = default(IO.Ably.Capability); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer1.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { result.Capability = nullable; } unpacked = (unpacked + 1); string nullable0 = default(string); if ((unpacked < itemsCount)) { nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String ClientId"); } if (((nullable0 == null) == false)) { result.ClientId = nullable0; } unpacked = (unpacked + 1); string nullable1 = default(string); if ((unpacked < itemsCount)) { nullable1 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String KeyName"); } if (((nullable1 == null) == false)) { result.KeyName = nullable1; } unpacked = (unpacked + 1); string nullable2 = default(string); if ((unpacked < itemsCount)) { nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String Mac"); } if (((nullable2 == null) == false)) { result.Mac = nullable2; } unpacked = (unpacked + 1); string nullable3 = default(string); if ((unpacked < itemsCount)) { nullable3 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String Nonce"); } if (((nullable3 == null) == false)) { result.Nonce = nullable3; } unpacked = (unpacked + 1); System.Nullable <System.DateTimeOffset> nullable4 = default(System.Nullable <System.DateTimeOffset>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(5); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable4 = this._serializer2.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable4 = this._serializer2.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } } if (nullable4.HasValue) { result.Timestamp = nullable4; } unpacked = (unpacked + 1); System.Nullable <System.TimeSpan> nullable5 = default(System.Nullable <System.TimeSpan>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(6); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable5 = this._serializer3.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable1 = default(MsgPack.Unpacker); disposable1 = unpacker.ReadSubtree(); try { nullable5 = this._serializer3.UnpackFrom(disposable1); } finally { if (((disposable1 == null) == false)) { disposable1.Dispose(); } } } } if (nullable5.HasValue) { result.Ttl = nullable5; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable6 = default(string); nullable6 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "MemberName"); if (((nullable6 == null) == false)) { key = nullable6; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "Ttl")) { System.Nullable <System.TimeSpan> nullable13 = default(System.Nullable <System.TimeSpan>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable13 = this._serializer3.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable4 = default(MsgPack.Unpacker); disposable4 = unpacker.ReadSubtree(); try { nullable13 = this._serializer3.UnpackFrom(disposable4); } finally { if (((disposable4 == null) == false)) { disposable4.Dispose(); } } } if (nullable13.HasValue) { result.Ttl = nullable13; } } else { if ((key == "Timestamp")) { System.Nullable <System.DateTimeOffset> nullable12 = default(System.Nullable <System.DateTimeOffset>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable12 = this._serializer2.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable3 = default(MsgPack.Unpacker); disposable3 = unpacker.ReadSubtree(); try { nullable12 = this._serializer2.UnpackFrom(disposable3); } finally { if (((disposable3 == null) == false)) { disposable3.Dispose(); } } } if (nullable12.HasValue) { result.Timestamp = nullable12; } } else { if ((key == "Nonce")) { string nullable11 = default(string); nullable11 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String Nonce"); if (((nullable11 == null) == false)) { result.Nonce = nullable11; } } else { if ((key == "Mac")) { string nullable10 = default(string); nullable10 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String Mac"); if (((nullable10 == null) == false)) { result.Mac = nullable10; } } else { if ((key == "KeyName")) { string nullable9 = default(string); nullable9 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String KeyName"); if (((nullable9 == null) == false)) { result.KeyName = nullable9; } } else { if ((key == "ClientId")) { string nullable8 = default(string); nullable8 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.TokenRequest), "System.String ClientId"); if (((nullable8 == null) == false)) { result.ClientId = nullable8; } } else { if ((key == "Capability")) { IO.Ably.Capability nullable7 = default(IO.Ably.Capability); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable7 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable2 = default(MsgPack.Unpacker); disposable2 = unpacker.ReadSubtree(); try { nullable7 = this._serializer1.UnpackFrom(disposable2); } finally { if (((disposable2 == null) == false)) { disposable2.Dispose(); } } } if (((nullable7 == null) == false)) { result.Capability = nullable7; } } else { unpacker.Skip(); } } } } } } } } } return(result); }
protected override TokenDetails UnpackFromCore(MsgPack.Unpacker unpacker) { TokenDetails result = default(TokenDetails); result = new TokenDetails(); { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable4 = default(string); nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(TokenDetails), "MemberName"); if (((nullable4 == null) == false)) { key = nullable4; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "clientId")) { string nullable9 = default(string); nullable9 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(TokenDetails), "System.String ClientId"); if (((nullable9 == null) == false)) { result.ClientId = nullable9; } } else { if ((key == "keyName")) { string keyNameValue = null; if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { keyNameValue = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable10 = default(MsgPack.Unpacker); disposable10 = unpacker.ReadSubtree(); try { keyNameValue = this._serializer0.UnpackFrom(disposable10); } finally { if (((disposable10 == null) == false)) { disposable10.Dispose(); } } } if (((keyNameValue == null) == false)) { result.KeyName = keyNameValue; } } else if ((key == "capability")) { IO.Ably.Capability nullable8 = default(IO.Ably.Capability); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable8 = this._serializer2.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable4 = default(MsgPack.Unpacker); disposable4 = unpacker.ReadSubtree(); try { nullable8 = this._serializer2.UnpackFrom(disposable4); } finally { if (((disposable4 == null) == false)) { disposable4.Dispose(); } } } if (((nullable8 == null) == false)) { result.Capability = nullable8; } } else { if ((key == "issued")) { System.Nullable <System.DateTimeOffset> nullable7 = default(System.Nullable <System.DateTimeOffset>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable7 = this._serializer3.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable3 = default(MsgPack.Unpacker); disposable3 = unpacker.ReadSubtree(); try { nullable7 = this._serializer3.UnpackFrom(disposable3); } finally { if (((disposable3 == null) == false)) { disposable3.Dispose(); } } } if (nullable7.HasValue) { result.Issued = nullable7.Value; } } else { if ((key == "expires")) { System.Nullable <System.DateTimeOffset> nullable6 = default(System.Nullable <System.DateTimeOffset>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable6 = this._serializer3.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable2 = default(MsgPack.Unpacker); disposable2 = unpacker.ReadSubtree(); try { nullable6 = this._serializer3.UnpackFrom(disposable2); } finally { if (((disposable2 == null) == false)) { disposable2.Dispose(); } } } if (nullable6.HasValue) { result.Expires = nullable6.Value; } } else { if ((key == "token")) { string nullable5 = default(string); nullable5 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(TokenDetails), "System.String Token"); if (((nullable5 == null) == false)) { result.Token = nullable5; } } else { unpacker.Skip(); } } } } } } } return(result); }
protected override Test.Test01 UnpackFromCore(MsgPack.Unpacker unpacker) { Test.Test01 result = default(Test.Test01); result = new Test.Test01(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); string nullable = default(string); if ((unpacked < itemsCount)) { nullable = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(Test.Test01), "System.String id"); } if (((nullable == null) == false)) { result.id = nullable; } unpacked = (unpacked + 1); Test.Test02 nullable0 = default(Test.Test02); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(1); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable0 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable0 = this._serializer1.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable0 == null) == false)) { result.test02 = nullable0; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable1 = default(string); nullable1 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(Test.Test01), "MemberName"); if (((nullable1 == null) == false)) { key = nullable1; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "test02")) { Test.Test02 nullable3 = default(Test.Test02); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable3 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable3 = this._serializer1.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable3 == null) == false)) { result.test02 = nullable3; } } else { if ((key == "id")) { string nullable2 = default(string); nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(Test.Test01), "System.String id"); if (((nullable2 == null) == false)) { result.id = nullable2; } } else { unpacker.Skip(); } } } } return(result); }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple1ObjectItselfReadOnlyFieldAndConstructor UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple1ObjectItselfReadOnlyFieldAndConstructor result = default(MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple1ObjectItselfReadOnlyFieldAndConstructor); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); object ctorArg0 = default(object); ctorArg0 = null; object nullable = default(object); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { ctorArg0 = nullable; } unpacked = (unpacked + 1); result = new MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple1ObjectItselfReadOnlyFieldAndConstructor(ctorArg0); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); object ctorArg00 = default(object); ctorArg00 = null; for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple1ObjectItselfReadOnlyFieldAndConstructor), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "Tuple1ObjectItself")) { object nullable1 = default(object); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { ctorArg00 = nullable1; } } else { unpacker.Skip(); } } result = new MsgPack.Serialization.PolymorphicMemberTypeRuntimeType_Tuple_Tuple1ObjectItselfReadOnlyFieldAndConstructor(ctorArg00); } return(result); }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemReadOnlyCollectionField UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemReadOnlyCollectionField result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemReadOnlyCollectionField); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemReadOnlyCollectionField(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.IList <object> nullable = default(System.Collections.Generic.IList <object>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer1.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { System.Collections.Generic.IEnumerator <object> enumerator = nullable.GetEnumerator(); object current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; result.ListObjectItem.Add(current); } } finally { enumerator.Dispose(); } } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemReadOnlyCollectionField), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "ListObjectItem")) { System.Collections.Generic.IList <object> nullable1 = default(System.Collections.Generic.IList <object>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer1.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { System.Collections.Generic.IEnumerator <object> enumerator0 = nullable1.GetEnumerator(); object current0; try { for ( ; enumerator0.MoveNext(); ) { current0 = enumerator0.Current; result.ListObjectItem.Add(current0); } } finally { enumerator0.Dispose(); } } } else { unpacker.Skip(); } } } return(result); }
protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictPolymorphicKeyAndStaticItemPrivateSetterCollectionProperty UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictPolymorphicKeyAndStaticItemPrivateSetterCollectionProperty result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictPolymorphicKeyAndStaticItemPrivateSetterCollectionProperty); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictPolymorphicKeyAndStaticItemPrivateSetterCollectionProperty(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.IDictionary <MsgPack.Serialization.FileSystemEntry, string> nullable = default(System.Collections.Generic.IDictionary <MsgPack.Serialization.FileSystemEntry, string>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { if ((result.DictPolymorphicKeyAndStaticItem == null)) { this._methodBasePolymorphicMemberTypeKnownType_Dict_DictPolymorphicKeyAndStaticItemPrivateSetterCollectionProperty_set_DictPolymorphicKeyAndStaticItem0.Invoke(result, new object[] { nullable }); } else { System.Collections.Generic.IEnumerator <System.Collections.Generic.KeyValuePair <MsgPack.Serialization.FileSystemEntry, string> > enumerator = nullable.GetEnumerator(); System.Collections.Generic.KeyValuePair <MsgPack.Serialization.FileSystemEntry, string> current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; result.DictPolymorphicKeyAndStaticItem.Add(current.Key, current.Value); } } finally { enumerator.Dispose(); } } } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_Dict_DictPolymorphicKeyAndStaticItemPrivateSetterCollectionProperty), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "DictPolymorphicKeyAndStaticItem")) { System.Collections.Generic.IDictionary <MsgPack.Serialization.FileSystemEntry, string> nullable1 = default(System.Collections.Generic.IDictionary <MsgPack.Serialization.FileSystemEntry, string>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer0.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { if ((result.DictPolymorphicKeyAndStaticItem == null)) { this._methodBasePolymorphicMemberTypeKnownType_Dict_DictPolymorphicKeyAndStaticItemPrivateSetterCollectionProperty_set_DictPolymorphicKeyAndStaticItem0.Invoke(result, new object[] { nullable1 }); } else { System.Collections.Generic.IEnumerator <System.Collections.Generic.KeyValuePair <MsgPack.Serialization.FileSystemEntry, string> > enumerator0 = nullable1.GetEnumerator(); System.Collections.Generic.KeyValuePair <MsgPack.Serialization.FileSystemEntry, string> current0; try { for ( ; enumerator0.MoveNext(); ) { current0 = enumerator0.Current; result.DictPolymorphicKeyAndStaticItem.Add(current0.Key, current0.Value); } } finally { enumerator0.Dispose(); } } } } else { unpacker.Skip(); } } } return(result); }
protected internal override MsgPack.Serialization.TestValueType UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.TestValueType result = default(MsgPack.Serialization.TestValueType); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.Dictionary <int, int> nullable = default(System.Collections.Generic.Dictionary <int, int>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer0.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { result.DictionaryField = nullable; } unpacked = (unpacked + 1); int[] nullable0 = default(int[]); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(1); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable0 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable0 = this._serializer1.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } } if (((nullable0 == null) == false)) { result.Int32ArrayField = nullable0; } unpacked = (unpacked + 1); string nullable1 = default(string); if ((unpacked < itemsCount)) { nullable1 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.TestValueType), "System.String StringField"); } if (((nullable1 == null) == false)) { result.StringField = nullable1; } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable2 = default(string); nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.TestValueType), "MemberName"); if (((nullable2 == null) == false)) { key = nullable2; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "StringField")) { string nullable5 = default(string); nullable5 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.TestValueType), "System.String StringField"); if (((nullable5 == null) == false)) { result.StringField = nullable5; } } else { if ((key == "Int32ArrayField")) { int[] nullable4 = default(int[]); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable4 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable2 = default(MsgPack.Unpacker); disposable2 = unpacker.ReadSubtree(); try { nullable4 = this._serializer1.UnpackFrom(disposable2); } finally { if (((disposable2 == null) == false)) { disposable2.Dispose(); } } } if (((nullable4 == null) == false)) { result.Int32ArrayField = nullable4; } } else { if ((key == "DictionaryField")) { System.Collections.Generic.Dictionary <int, int> nullable3 = default(System.Collections.Generic.Dictionary <int, int>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable3 = this._serializer0.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable1 = default(MsgPack.Unpacker); disposable1 = unpacker.ReadSubtree(); try { nullable3 = this._serializer0.UnpackFrom(disposable1); } finally { if (((disposable1 == null) == false)) { disposable1.Dispose(); } } } if (((nullable3 == null) == false)) { result.DictionaryField = nullable3; } } } } } } return(result); }