AspUnitRunner.Infrastructure.ResponseDecoder.GetCharset C# (CSharp) Метод

GetCharset() статический приватный Метод

static private GetCharset ( WebHeaderCollection responseHeaders ) : string
responseHeaders System.Net.WebHeaderCollection
Результат string
        internal static string GetCharset(WebHeaderCollection responseHeaders)
        {
            var contentType = responseHeaders[HttpResponseHeader.ContentType];
            if (string.IsNullOrEmpty(contentType))
                return null;

            try {
                return new ContentType(contentType).CharSet;
            } catch (FormatException) {
                return null;
            }
        }