ok so im trying to search list for a student by the last name and i keep getting a error as
Error 1 Cannot convert type 'string' to 'Project2.Person'
and i do not know how to fix it. any advice?
class StudentData
{ private List<string> Page;
public StudentData()
{ Page = new List<string>();
}
public Person searchStudent(string Lname) //searches for a Person based on their last name
{
foreach(Person search in Page)
{
if (search.getLastName().ToLower() == Lname.ToLower())
{
return search;
}
}
r