I was wondering what is the difference between the two approaches, between |=
and simply =
although the same result. I don't know what is the difference
This is for educational purposes.
public int ValueA { get; set; }
public int ValueB { get; set; }
bool someBool { get; private set; }
#region using_|=
someBool |= ValueA >= ValueB;
#endregion
#region using_basic_=
someBool = ValueA >= ValueB;
#endregion