mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Merge pull request #279 from timocov/master
Fix TLVector serialization with TLObject
This commit is contained in:
commit
ce193ff79d
|
|
@ -81,7 +81,7 @@ namespace TeleSharp.TL
|
||||||
}
|
}
|
||||||
else if (typeof(T).BaseType == typeof(TLObject))
|
else if (typeof(T).BaseType == typeof(TLObject))
|
||||||
{
|
{
|
||||||
var res = (TLObject) (Convert.ChangeType(item, typeof (TLObject)));
|
var res = (TLObject)(object)item;
|
||||||
res.SerializeBody(bw);
|
res.SerializeBody(bw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue