If you want it compiled to a .NET enum, then you must specify the values. Otherwise it is an F# discriminated union. See also

<i><A href="http://msdn.microsoft.com/en-us/library/dd233216(v=VS.100).aspx">http://msdn.microsoft.com/en-us/library/dd233216(v=VS.100).aspx<i></A> <A href="http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/spec.html#_Toc257733658">http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/spec.html#_Toc257733658</A>

By on 4/10/2010 12:12 AM ()

If you could just define the first value and have the rest of them automatically assigned, it would be handy when you're defining enums to be used from other .NET languages.

By on 2/11/2011 6:48 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper