public TuEntry(XElement tu, int index) { var X = tu.Name.Namespace; Index = index; // collect tu info. Id = (string)tu.Attribute("tuid") ?? ""; SourceLang = (string)tu.Attribute("srclang"); TuProps = CollectProps(tu); TuNotes = CollectNotes(tu); // collect tuv's TagPool pool = new TagPool(); foreach (var tuv in tu.Elements(X + "tuv")) { // collet target tuv info. Tuvs.Add(new TuvEntry { Lang = GetLanguage(tuv), Inline = pool.AssignTagNumbers(GetInline(tuv.Element(X + "seg"))), Props = CollectProps(tuv), Notes = CollectNotes(tuv), }); } }