예제 #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)
      ));
 }
예제 #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)
                                 ));
 }
예제 #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();
 }
예제 #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();
 }