Fix lua project with analyzer change

This commit is contained in:
Morilli 2023-05-24 18:29:56 +02:00
parent 05f8747321
commit 8a46af0b25
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ namespace NLua
if (paramType.IsByRef)
paramType = paramType.GetElementType();
return _extractValues.ContainsKey(paramType) ? _extractValues[paramType] : _extractNetObject;
return _extractValues.TryGetValue(paramType, out ExtractValue value) ? value : _extractNetObject;
}
internal ExtractValue CheckLuaType(LuaState luaState, int stackPos, Type paramType)