1
Answer

Cannot convert from 'method group'

Mehmood

Mehmood

6y
23.7k
1
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<object>
 
private void DeleteStudent(ObservableCollection<User> StudentCollection, User Instance)
{
StudentCollection.Remove(StudentCollection.SingleOrDefault(i => i.UserId == Instance.UserId));
}
 
how to pass the parameter to solve this error
Answers (1)