Exemplo n.º 1
0
 public void AddRootFile(RootFile rootFile)
 {
     _rootFiles.Add(new XElement(Namespace + "rootfile",
         new XAttribute("full-path", rootFile.FullPath),
         new XAttribute("media-type", rootFile.MediaType)
      ));
 }
Exemplo n.º 2
0
 public void AddRootFile(RootFile rootFile)
 {
     _rootFiles.Add(new XElement(Namespace + "rootfile",
                                 new XAttribute("full-path", rootFile.FullPath),
                                 new XAttribute("media-type", rootFile.MediaType)
                                 ));
 }
Exemplo n.º 3
0
 public void RemoveRootFile(RootFile rootFile)
 {
     _rootFiles.Descendants().SingleOrDefault(p => p.Name == "rootfile" && p.Attribute("full-path")?.Value == rootFile.FullPath
         && p.Attribute("media-type")?.Value == rootFile.MediaType)?.Remove();
 }
Exemplo n.º 4
0
 public void RemoveRootFile(RootFile rootFile)
 {
     _rootFiles.Descendants().SingleOrDefault(p => p.Name == "rootfile" && p.Attribute("full-path")?.Value == rootFile.FullPath &&
                                              p.Attribute("media-type")?.Value == rootFile.MediaType)?.Remove();
 }