예제 #1
0
 public WordOccurrences AddOccurrence(string fileName, int lineNumber, int wordIndex)
 {
     return(new WordOccurrences(
                NumberOfOccurrences + 1,
                Locations
                .Concat(
                    new[] { new WordLocation(fileName, lineNumber, wordIndex) })
                .ToArray()));
 }