Possible to overload null-coalescing operator?
Good question! It’s not listed one way or another in the list of overloadable and non-overloadable operators and nothing’s mentioned on the operator’s page. So I tried the following: public class TestClass { public static TestClass operator ??(TestClass test1, TestClass test2) { return test1; } } and I get the error “Overloadable binary operator expected”. … Read more