Trying to do a foreach:
foreach(User in userList)
{
}
Where userList is a IEnumerable<User> userList
I tried doing: userList.ToList() but I get the same message.
In your foreach statement, you haven't specified an identifier for the current instance of User. Try adding an identifier (e.g., currUser or just user) after the type User, like this:
foreach(User user in userList)
{
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With