f# - FSharpChoice in C# -
i trying use fsharpchoice type in c# project. have created choice so
var = fsharpchoice<t1,t2,t3>.newchoice1of3(instoft1); now how instoft1 out of choice type.
i see can ischoice1of3 how value in choice object?
cast value fsharpchoice<t1,t2,t3>.choice1of3 , use item property.
see compiled form of union types use other cli languages in f# spec more information how discriminated unions represented.
Comments
Post a Comment