Exemple #1
0
        private string References(Paragraph paragraph)
        {
            var references = paragraph.Lines.SelectMany(line => Reference.Matches(line).Cast <Match>().Select(match => match.Value));

            if (!Options.IsStrictRefs())
            {
                references = references.Distinct().OrderBy(reference => reference);
            }

            return(string.Join(", ", references));
        }