Пример #1
0
 private void ProcessNextLetterChunk(string chunk)
 {
     if (NextLetters == null)
     {
         NextLetters = new List <NextLetter>();
         NextLetters.Add(new NextLetter(chunk, 0));
     }
     else
     {
         NextLetters.Add(new NextLetter(chunk, NextLetters.Last().CumulativeWeight));
     }
 }
Пример #2
0
 public NextLetter NextLetter(double weight)
 {
     return(NextLetters.FirstOrDefault(nl => nl.CumulativeWeight > weight));
 }
Пример #3
0
 public void addNextLetter(string nextLetter)
 {
     NextLetters.Add(nextLetter);
 }