Excuse me for publishing such a shot post (it’s now the last one, so please don’t feel too annoyed), but this little nice thing in C# can be nice to know:
1 2 3 | string a = null; string b = "hello"; string c = a ?? b; // c equals "hello" |
In other words, it returns the first argument that is not null.
