コード例 #1
0
ファイル: Container.cs プロジェクト: Mitch528/Epub.Net
 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
ファイル: Container.cs プロジェクト: Mitch528/Epub.Net
 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();
 }