PdfRpt.Core.Helper.SoftHttpContext.getCurrentResponse C# (CSharp) Method

getCurrentResponse() private static method

private static getCurrentResponse ( object context ) : object
context object
return object
        private static object getCurrentResponse(object context)
        {
            var responseProperty = context.GetType().GetProperty("Response");
            var response = responseProperty.GetValue(context, null);
            if (response == null)
                throw new InvalidOperationException(Error);

            return response;
        }