Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Usual .NET constructors for Discriminated Unions #615
Usual .NET constructors for Discriminated Unions
I propose we add usual constructors for discriminated unions for interop F# to C#. Now, we must to use functions, like "type".New"case"(params). But, F# generates classes for this cases, may be they should releases constructors?
Note that F# doesn't always generate classes for union cases, e.g. it doesn't generate a class for unary alternatives, nor for struct unions. So the choice to use
As a result I will close this suggestion