When trying to invoke a delegate which reference a function with optional parameter, iam getting
No overload for 'Employee' matches delegate 'System.Func
Then how to call it, when i don't need to pass the parameter.
Func<Employee> print = Employee;
Employee employee = print();
private Employee Employee(int employeeID = 1)
{
return new Employee();
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…