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