internal static MethodInfo getMethod(Type type, string name) { return type.GetMethod(name, BindingFlags.Public | BindingFlags.Instance); }