I have the following enum marked as [Flag]
, that is, they are values in bit
[Flags]
public enum Position
{
None,
Left,
Right,
Both=3
}
Sete for Both
(both) position in 3
because if it is Left
and Right
at the same time, it should equal Both
(1 + 2 = 3)
But when I call Both on the ToString and it appears as "Left | Right"
. How do I make it appear as "Both"
?