private MethodInfo GetMethodInfo(object obj, string methodName) { Type thisType = obj.GetType(); return thisType.GetMethod(methodName, BindingFlags.Public | BindingFlags.Instance); }