7

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# ?

user2864740
  • 60,010
  • 15
  • 145
  • 220
AymenDaoudi
  • 7,811
  • 9
  • 52
  • 84

1 Answers1

1

As per this answer You could make a struct that mimics this this type of functionality.

Community
  • 1
  • 1
Kracobsen
  • 169
  • 2
  • 11