mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
[Core] Changed type check as suggested by @knocte
This commit is contained in:
parent
b4024e101e
commit
c443ad0cc0
|
|
@ -20,11 +20,7 @@ namespace TeleSharp.TL
|
||||||
where t.IsSubclassOf(typeof(TLObject))
|
where t.IsSubclassOf(typeof(TLObject))
|
||||||
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
|
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
|
||||||
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
|
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
|
||||||
|
Types[481674261] = typeof(TLVector<>);
|
||||||
if (!Types.ContainsKey(481674261))
|
|
||||||
{
|
|
||||||
Types.Add(481674261, typeof(TLVector<>));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public static Type getType(int Constructor)
|
public static Type getType(int Constructor)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue