KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Possible Duplicate: C# int to enum conversion Is it somehow possible to convert an int to a flag combination enum? So, if [Flags] public enum Foo {a = 0x80, b = 0x40, c = ..., ... h = 0x1, i = 0}; is it OK (or somehow possible) to do Foo fooInstance = (Foo)6; so that fooInstance would be 00000110? Thanks!
Tags (comma-separated)
Save Edits
Cancel