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

setContentType() private static method

private static setContentType ( object response ) : void
response object
return void
        private static void setContentType(object response)
        {
            var contentTypeProperty = response.GetType().GetProperty("ContentType");
            contentTypeProperty.SetValue(response, MediaTypeNames.Application.Pdf, null);
        }