public Section(SectionsSection xmlSection) { Title = xmlSection.Title; if(xmlSection.Note == null) { return; } foreach (var xmlNote in xmlSection.Note) { _notes.Add(new Note {Title = xmlNote.Title, Text = xmlNote.Value}); } }
public Section(SectionsSection xmlSection) { Title = xmlSection.Title; if (xmlSection.Note == null) { return; } foreach (var xmlNote in xmlSection.Note) { _notes.Add(new Note { Title = xmlNote.Title, Text = xmlNote.Value }); } }