BetterListmyList = new BetterList { 5, 2, 8, 1 }; myList.Sort();
BetterListmyList = new BetterList { "apple", "banana", "cherry", "orange" }; var filteredList = myList.Where(x => x.Contains("a"));
BetterListThis code creates a BetterList of MyObject instances, adds some objects to it, and then paginates the list into two pages. The first page contains the first 10 values of the list, and the second page contains the next 10 values. Package library: BetterCollectionsmyList = new BetterList { /*some objects*/ }; var page1 = myList.Take(10); var page2 = myList.Skip(10).Take(10);