"Core/LuaInterface/LuaTable.cs" did not exist on "8a76b646a3f7145f38e37f1270ae55928358a86a"
Commit fb177cdf authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Merge pull request #128 from isaacbrodsky/master

#127 Type.IsValueType does not exist for Windows Store apps
parents abdaf4af 3cab8a29
...@@ -1114,7 +1114,11 @@ namespace NLua ...@@ -1114,7 +1114,11 @@ namespace NLua
} }
} }
#if NETFX_CORE
if (klass.UnderlyingSystemType.GetTypeInfo ().IsValueType) {
#else
if (klass.UnderlyingSystemType.IsValueType) { if (klass.UnderlyingSystemType.IsValueType) {
#endif
int numLuaParams = LuaLib.LuaGetTop (luaState); int numLuaParams = LuaLib.LuaGetTop (luaState);
if (numLuaParams == 0) { if (numLuaParams == 0) {
translator.Push (luaState, Activator.CreateInstance (klass.UnderlyingSystemType)); translator.Push (luaState, Activator.CreateInstance (klass.UnderlyingSystemType));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment