How set default value for argument?

  • Thread starter Thread starter Raj
  • Start date Start date
R

Raj

Is there a way to set default value function/method arguments? Something like:
FindEmployees(string argName=="All")

FindEmployees("Raj");
FindEmployees();

Thank you

Regards
Raj
 
Is there a way to set default value function/method arguments? Something like:
FindEmployees(string argName=="All")

FindEmployees("Raj");
FindEmployees();

Today:
no

April 12th (supposed to be C# 4.0 / .NET 4.0 / VS 2010 release date):
yes

Syntax:
FindEmployees(string argName = "All")

Arne
 
Back
Top