Skip to content

Commit aa26020

Browse files
authored
Fix missing using on console app and path to book file. Fixes #15
2 parents f661329 + d49aa19 commit aa26020

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: samples/FBLibrary.Sample.ConsoleApp/Program.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
using System.Drawing;
1+
using System;
2+
using System.Drawing;
23
using System.Drawing.Imaging;
4+
using System.IO;
35
using System.Xml;
46
using FB2Library;
57
using FB2Library.Elements;
68

7-
var filePath = Path.Combine("..", "..", "..", "..", "files", "test.fb2");
9+
var filePath = Path.Combine("..", "..", "..", "..", "..", "files", "test.fb2");
810
await using var fileStream = new FileStream(filePath, FileMode.Open);
911

1012
var readerSettings = new XmlReaderSettings

Diff for: src/HeaderItems/ItemTitleInfo.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class ItemTitleInfo : ItemInfoBase
5656
/// <summary>
5757
/// Book's annotation
5858
/// </summary>
59-
public AnnotationItem Annotation { set; private get; }
59+
public AnnotationItem Annotation { get; private set; }
6060

6161
/// <summary>
6262
/// Book date , can be a range like 1990-1991
@@ -66,7 +66,7 @@ public class ItemTitleInfo : ItemInfoBase
6666
/// <summary>
6767
/// Book's language
6868
/// </summary>
69-
public string Language { set; private get; }
69+
public string Language { get; private set; }
7070

7171
public CoverPage Cover { get; private set; }
7272

@@ -204,7 +204,7 @@ public void Load(XElement xTitleInfo)
204204
}
205205
else
206206
{
207-
Debug.WriteLine("Language not specified in title section");
207+
Debug.WriteLine("Language not specified in title section");
208208
}
209209

210210
// Load source language

0 commit comments

Comments
 (0)