In the below code which I got from the Internet, function has return type as IList<String> but the function actually returns studenList which is declared as var.
So I am bit confused how that works?
So I am bit confused how that works?
C#:
private static IList<String> FindAllStudentFromDatabase(string studentName)
{
var studentList = // find all students with same name from the database
return studentList;
}