I have a little confusing about this error.
I am new in c#.
Kindly guide me ho to solve
Cannot convert from 'method group' to 'System.Action
private void DeleteStudent(ObservableCollection StudentCollection, User Instance)
{
StudentCollection.Remove(StudentCollection.SingleOrDefault(i => i.UserId == Instance.UserId));
}
how to pass the parameter to solve this error

Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 26, 2018, 9:21 PM EDT
Better is first option so please prefer fisrt if it will work