Map(x => x.IsEvenSide);
Map(x => x.IsOddSide);
public class Example
{
public IsEvenSide { get; private set; }
public IsOddSide { get; private set; }
public SideOfStreet SideOfStreet
{
get
{
var side = SideOfStreet.None;
if (IsEvenSide) { side |= SideOfStreet.Even; }
if (IsOddSide) { side |= SideOfStreet.Odd; }
return side;
}
set
{
IsEvenSide = (value & SideOfStreet.Even) == SideOfStreet.Even;
IsOddSide = (value & SideOfStreet.Odd) == SideOfStreet.Odd;
}
}
}
Map(Reveal.Property<Example>("IsEvenSide"));