In C# the question mark has 5 meanings as of C# 8. Ternary operators 2. Null conditional operator 3. Nullable types (this should be rebranded as nullable value types) 4. Null-coalescing operator 5. Nullable reference types
Tag: C#
The Collection Comparer, Finding the Differences Between Two Collections
Have you had to compare two collections and execute some logic based on whether the item is in the source collection, in the comparing collection or in both? Yeah, me too, I needed to merge data from the UI and the database. I couldn’t find a good solution, so, I wrote a collection comparer. To…
Running Await in a Constructor
If you must run code in a constructor. I’d look for a different way, but if you must, here’s one way: