mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Added a check to make sure this value is not added twice to the dictionary.
This commit is contained in:
parent
1b06473108
commit
becb9172d0
|
|
@ -20,7 +20,10 @@ namespace TeleSharp.TL
|
|||
where t.IsSubclassOf(typeof(TLObject))
|
||||
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
|
||||
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
|
||||
Types.Add(481674261, typeof(TLVector<>));
|
||||
if (!Types.TryGetValue(481674261, out _))
|
||||
{
|
||||
Types.Add(481674261, typeof(TLVector<>));
|
||||
}
|
||||
}
|
||||
|
||||
public static Type getType(int Constructor)
|
||||
|
|
|
|||
Loading…
Reference in a new issue