This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Flags enum does not bind #220
Closed
Description
From the thread at #214 (comment),
In Mvc, for the enum type,
[Flags]
private enum MyFlagsEnum
{
Value0 = 1,
Value1 = 2,
Value2 = 4
}
- the value
5
will get correctly bound as MyFlagsEnum.Value0 | MyFlagsEnum.Value2. This does not happen in our code. - The string "Value0" will bind to MyFlagsEnum, but we dont have anything equivalent for flags that is "Value0 | Value1" will not bind.