C#C
C#4y ago
androidui

explicit null param

is there a way to specify an explicit overload for null ?

eg

foo(object_a); // object overload
foo(null); // null overload



eg, equivilant to C++'s std::nullptr_t

specifically to avoid

foo(C_A);
foo(C_B);
foo(null); // ambigous overload
Was this page helpful?