private static void clearResponse(object response) { var clear = response.GetType().GetMethod("Clear"); clear.Invoke(response, new object[] { }); }