4 ms·
The null-conditional operator is a language feature. The Option monad is a class in the standard library. You can have Option in C# and use it with linq to get
by CuriousSkeptic 11y ago
The null-conditional operator is a language feature. The Option monad is a class in the standard library.
You can have Option in C# and use it with linq to get more or less the same feature and syntax. There are a few implementations on nuget if you don't want to write your own.