Example #1
0
        public PackageDefinition(XElement element)
        {
            MetaData = new PackageMetaData(element.Element(PackageMetaData.ElementName));

            Contents = element
                .Element(PackageContentsElementName)
                .Elements(ContentDefinition.ElementName)
                .Select(x => new ContentDefinition(x))
                .ToList();

            Layouts = element
                .Element(PackageLayoutsElementName)
                .Elements(LayoutDefinition.ElementName)
                .Select(x => new LayoutDefinition(x))
                .ToList();
        }
Example #2
0
 public PackageDefinition()
 {
     MetaData = new PackageMetaData();
     Layouts = new List<LayoutDefinition>();
     Contents = new List<ContentDefinition>();
 }