How to declare an Optional type in C#?
16,339
As per this answer You could make a struct that mimics this this type of functionality.
Author by
AymenDaoudi
Updated on August 04, 2022Comments
-
AymenDaoudi almost 2 years
Java 8 has
Optional<T>
which is nice way to declare optional types as described here. Is there an equivalent way to that in C# ?