local function getClassMethods(className) local class = mono_findClass("", className) if class and class ~= 0 then return mono_class_enumMethods(class) end end local reformat = {[";"] = ",", [" "] = ""} function getMethodBySignature(className, methodName, signature) if type(signature) ~= "string" then error("Signature must be a string") end local methods = type(className) == "number" and mono_class_enumMethods(className) or getClassMethods(className) if not methods then return end signature = signature:gsub(".", reformat) for _, v in ipairs(methods) do if v.name == methodName then local sign = mono_method_getSignature(v.method) if string.find(sign, signature) then return mono_compile_method(v.method) end end end end