int ndx = Books.FindIndex(FindComputer); Console.WriteLine("Index of first computer book: {0}", ndx); ndx = Books.FindLastIndex(FindComputer); Console.WriteLine("Index of last computer book: {0}", ndx); int mid = Books.Count / 2; ndx = Books.FindIndex(mid, mid, FindComputer); ...
Console.WriteLine("\nNo books found."); } // Find all books under $10.00. results = Books.FindAll( delegate(Book bk) { return bk.Price < 10.00; } ); if (results != null) { DisplayResults(results, "Books under $10:"); } else { Console.WriteLine("\nNo books found."); } //...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
namespace Find{ class Program { private static string IDtoFind = "bk109"; private static List<Book> Books = new List<Book>(); public static void Main(string[] args) { FillList(); // Find a book by its ID. Book result = Books.Find( delegate(Book bk) { return bk.ID == IDto...