How can you use optional parameters in C#?
- by kurious
We're building a web API that's programmatically generated from a C# class (the class has method "GetFooBar(int a, int b)" and the API has a method GetFooBar taking query params like &a=foo&b=bar.
The classes needs to support optional parameters, which isn't supported in C# the language. What's the best approach?