Ejemplo n.º 1
0
        public LibraryFunction(string library, string libraryDescription, MethodInfo method)
        {
            _luaAttributes       = method.GetCustomAttribute <LuaMethodAttribute>(false);
            _luaExampleAttribute = method.GetCustomAttribute <LuaMethodExampleAttribute>(false);
            _method = method;

            Library            = library;
            LibraryDescription = libraryDescription;
        }
Ejemplo n.º 2
0
        public LibraryFunction(string library, string libraryDescription, MethodInfo method)
        {
            _luaAttributes = method.GetCustomAttributes(typeof(LuaMethodAttribute), false)
                             .First() as LuaMethodAttribute;
            _method = method;

            Library            = library;
            LibraryDescription = libraryDescription;
        }