GetEnumObject() public static méthode

public static GetEnumObject ( IntPtr L, System e, object &obj ) : int
L System.IntPtr
e System
obj object
Résultat int
Exemple #1
0
 public static void Push(IntPtr L, System.Enum e)
 {
     if (e == null)
     {
         LuaDLL.lua_pushnil(L);
     }
     else
     {
         object obj           = null;
         int    enumMetatable = LuaStatic.GetEnumObject(L, e, out obj);
         PushUserData(L, obj, enumMetatable);
     }
 }
Exemple #2
0
 public static void Push(IntPtr L, Enum e)
 {
     if (e == null)
     {
         LuaDLL.lua_pushnil(L);
     }
     else
     {
         object o          = null;
         int    enumObject = LuaStatic.GetEnumObject(L, e, out o);
         ToLua.PushUserData(L, o, enumObject);
     }
 }