I want to use an Option type in C#.
Are there any good alternatives for an Option type in C# like 'T option
in F#, Option[A]
in Scala, or Optional<T>
in Java 8?
I know that F#'s 'T option
can be used in C# like an external library (FSharp.Core
), but I think that is... Well, is it preferable to do so? There may be some problems like name conflicts.