Pattern matching (switch expression) for Tuples (.Case) #939
Answered
by
StefanBertels
StefanBertels
asked this question in
Q&A
-
Does anybody know how pattern matchin can be done with tuples? It worked using Not compiling (4.0.3):
Workaround (for Option only, does not work for Either etc.):
|
Beta Was this translation helpful? Give feedback.
Answered by
StefanBertels
Nov 10, 2021
Replies: 1 comment
-
Ok, after fiddling with
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
StefanBertels
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, after fiddling with
ToNullable()
and with refactoring tipps by Rider (ReSharper) I found a working solution: