Is it possible to declarate optional parameters in methods?
In delphi,for example,I can do something like:
procedure Test(p1:integer;p2:integer;p3:integer = 2;p4:integer = 4)
When I call that function I can call it with four parameters or with two parameters:
Test(2,3); //p3 = 2,p4 = 4.
Test(2,3,4,5); //p3 = 4,p4 = 5;
How is that possible in C#?