示例#1
0
 /// <summary>
 /// Returns the Phrase elements in the Sentence, following and not including the given Phrase.
 /// </summary>
 /// <param name="phrase">The Phrase from which to start.</param>
 /// <returns>
 /// The Phrase elements in the Sentence, following and not including the given Phrase.
 /// </returns>
 public IEnumerable <Phrase> GetPhrasesAfter(Phrase phrase) => Phrases.SkipWhile(r => r != phrase).Skip(1);
示例#2
0
 /// <summary>
 /// Returns the sequence of Phrases which come after the given phrase through to the end of the Paragraph.
 /// </summary>
 /// <param name="startAfter">The Phrase which bounds the sequence.</param>
 /// <returns>The sequence of Phrases which come after the given phrase through to the end of the Paragraph.</returns>
 public IEnumerable <Phrase> GetPhrasesAfter(Phrase startAfter) => Phrases.SkipWhile(p => p != startAfter).Skip(1);