Minor performance tweak to handle LuaType casting better if type is already a LuaType

This commit is contained in:
Deukhoofd 2018-11-23 13:24:41 +01:00
parent ea24695128
commit 95f76bc5e3
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ namespace Upsilon.BaseTypes
{
public static LuaType ToLuaType(this object o)
{
if (o is LuaType type) return type;
switch (o)
{
case bool b: