Код: Выделить всё
Код: Выделить всё
Код: Выделить всё
public string[] GetLinkedCssFilesList(string xslFilePath)
{
XDocument document = XDocument.Load(xslFilePath);
List cssFiles = new List();
var cssLinks = document.Descendants("link");
foreach(var css in cssLinks)
{
cssFiles.Add(css.Attribute("href").Value);
}
return cssFiles.ToArray();
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... pt-using-c
Мобильная версия