| Yes in csharp vesion 4.0 we have facilty to pass parametrs with default value to get this done we take an example as below:-
class ProgramDefaultVal
{
public static void mydefmethod(string dfval="testvalue")
{
Console.WriteLine(dfval);
}
static void Main()
{
mydefmethod();
}
} | | |