BlogEngine.Core.Providers.XmlBlogProvider.FillPackages C# (CSharp) Метод

FillPackages() публичный Метод

Gets all installed from gallery packages
public FillPackages ( ) : List
Результат List
        public override List<InstalledPackage> FillPackages()
        {
            var fileName = Path.Combine(dataFolder, Constants.InstalledPackagesXml);

            if (!File.Exists(fileName))
            {
                return null;
            }

            var doc = new XmlDocument();
            doc.Load(fileName);

            return (from XmlNode node in doc.SelectNodes("InstalledPackages/item")
                select new InstalledPackage
                {
                    PackageId = node.Attributes["id"].InnerText,
                    Version = node.Attributes["version"].InnerText
                }).ToList();
        }