MCPcopy Create free account
hub / github.com/Tencent/xLua / hasMethod

Method hasMethod

Assets/XLua/Src/ObjectTranslator.cs:753–763  ·  view source on GitHub ↗
(Type type, string methodName)

Source from the content-addressed store, hash-verified

751 }
752
753 bool hasMethod(Type type, string methodName)
754 {
755 foreach (var method in type.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static))
756 {
757 if (method.Name == methodName)
758 {
759 return true;
760 }
761 }
762 return false;
763 }
764
765 internal void collectObject(int obj_index_to_collect)
766 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected