public static void LoadStyleSheets(HttpContext context, IEnumerable <string> resourceNames, string mediaType, Encoding responseEncoding, bool cacheResponse)
        {
            var response = context.Response;

            response.ContentType = mediaType;

            foreach (var resourceName in resourceNames)
            {
                ManifestResourceHelper.WriteResourceToStream(response.Body, typeof(StyleSheetHelper), resourceName);
            }
        }
        private static string CalculateHash()
        {
            var memoryStream = new MemoryStream();

            foreach (var resourceName in AllStyleSheetResourceNames)
            {
                ManifestResourceHelper.WriteResourceToStream(memoryStream, typeof(StyleSheetHelper), resourceName);
            }

            return(MD5.Create()
                   .ComputeHash(memoryStream)
                   .Select(b => b.ToString("x2"))
                   .ToDelimitedString(string.Empty));
        }