public LibraryFunction(string library, string libraryDescription, MethodInfo method) { _luaAttributes = method.GetCustomAttribute <LuaMethodAttribute>(false); _luaExampleAttribute = method.GetCustomAttribute <LuaMethodExampleAttribute>(false); _method = method; Library = library; LibraryDescription = libraryDescription; }
public LibraryFunction(string library, string libraryDescription, MethodInfo method) { _luaAttributes = method.GetCustomAttributes(typeof(LuaMethodAttribute), false) .First() as LuaMethodAttribute; _method = method; Library = library; LibraryDescription = libraryDescription; }