Note: This question was asked at a time when C# did not yet support optional parameters (i.e. before C# 4).
We\'re building a web API tha
You can try this too Type 1 public void YourMethod(int a=0, int b = 0) { //some code }
public void YourMethod(int a=0, int b = 0) { //some code }
Type 2 public void YourMethod(int? a, int? b) { //some code }
public void YourMethod(int? a, int? b) { //some code }