Ejemplo n.º 1
0
        private string GetContent(SPFile file)
        {
            string content = Encoding.UTF8.GetString(RemoveBOM(file.OpenBinary()));

            if (file.Name.EndsWith(".css", StringComparison.InvariantCultureIgnoreCase))
                content = new CssRelativePathResolver(file.ServerRelativeUrl, content).Resolve();

            return content;
        }
Ejemplo n.º 2
0
        private string GetContent(SPFile file)
        {
            string content = Encoding.UTF8.GetString(RemoveBOM(file.OpenBinary()));

            if (file.Name.EndsWith(".css", StringComparison.InvariantCultureIgnoreCase))
            {
                content = new CssRelativePathResolver(file.ServerRelativeUrl, content).Resolve();
            }

            return(content);
        }