private void FillSegment(ISegmentPair segmentPair, XmlNode node, bool source) { ISegment seg; if (source) { seg = segmentPair.Source; } else { seg = segmentPair.Target; } node.InnerText = textExtractor.GetPlainText(seg); }
private void FillSegment(ISegmentPair segmentPair, XmlNode node, bool source) { var seg = source ? segmentPair.Source : segmentPair.Target; node.InnerText = _textExtractor.GetPlainText(seg); }