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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -