コード例 #1
0
        public WordCountResult Count(IList <string> WordsToCount)
        {
            var result = new WordCountResult();

            result.CountWords = WordsToCount.Count;

            return(result);
        }
コード例 #2
0
 public void ShowResult(WordCountResult wordCountResult)
 {
     Console.WriteLine(string.Format("Es wurden {0} Wörter gezählt", wordCountResult.CountWords));
 }