static void Main(string[] args) { LinqPractice practice = new LinqPractice(); Console.WriteLine(practice.AtoZWithFrequency("terrill")); Console.ReadKey(); }
static void Main(string[] args) { LinqPractice linq = new LinqPractice(); linq.ReturnSubstring(); linq.ReturnNonDuplicateNames(); linq.ReturnClassAverage(); linq.AlphabeticallyOrderedStringFrequency(); }
public void ReturnSubstring() { var words = new LinqPractice().GetWords(); var thWords = words.Where(w => w.word.Contains("th")); foreach (var word in thWords) { Console.WriteLine(word.word); } Console.ReadLine(); }