コード例 #1
0
ファイル: SuperSearcher.cs プロジェクト: modernn/SuperSearch
 public WordOccurrences AddOccurrence(string fileName, int lineNumber, int wordIndex)
 {
     return(new WordOccurrences(
                NumberOfOccurrences + 1,
                Locations
                .Concat(
                    new[] { new WordLocation(fileName, lineNumber, wordIndex) })
                .ToArray()));
 }