Is there a way to pass null arguments to C# methods (something like null arguments in c++)?
For example:
Is it possible to translate the following c++ functi
You can use NullableValueTypes (like int?) for this. The code would be like this:
private void Example(int? arg1, int? arg2) { if(!arg1.HasValue) { //do something } if(!arg2.HasValue) { //do something else } }