Can I give default parameters in C#?
In C:
void fun(int i = 1) { printf(\"%d\", i); }
Can we give parameters a default value? I
Yes. See Named and Optional Arguments. Note that the default value needs to be a constant, so this is OK:
public string Foo(string myParam = "default value") // constant, OK { }
but this is not:
public void Bar(string myParam = Foo()) // not a constant, not OK { }