Merge pull request #279 from timocov/master

Fix TLVector serialization with TLObject
This commit is contained in:
Ilya Pirozhenko 2016-10-31 09:07:40 +03:00 committed by GitHub
commit ce193ff79d

View file

@ -81,9 +81,9 @@ namespace TeleSharp.TL
}
else if (typeof(T).BaseType == typeof(TLObject))
{
var res = (TLObject) (Convert.ChangeType(item, typeof (TLObject)));
var res = (TLObject)(object)item;
res.SerializeBody(bw);
}
}
}
}
}