make function optional in c# code example Example: C# optional arguments public void SomeMethod(int a, int b = 0){/*some code*/}