KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Let's consider the following enum in C# public enum ScrollMode : byte { None = 0, Left = 1, Right = 2, Up = 3, Down = 4 } The F# code receives a byte and has to return an instance of the enum I have tried let mode = 1uy let x = (ScrollMode)mode (Of course in the real application I do not get to set 'mode', it is received as part of network data). The example above does not compile, any suggestions?
Tags (comma-separated)
Save Edits
Cancel