//**********************************Lambda Expressions**************************** //Below I have defined four lambda expressions used to search for minions by their name, strenght //type and different traits /// <summary> /// Lambda expression that returns a minion based on its name, making it possible for the application to /// check if a minion with x name already exist in the registry and thereby preventing doublettes /// </summary> /// <param name="searchName"></param> /// <returns></returns> public Minion SearchByName(string searchName) { Minion found = Mylist.Find(min => min.Name == searchName); return(found); }