private static int Translate(Multioperation3Unary op, int i) { var a = ((i & 1) >> PosA) * op.A; var b = ((i & 2) >> PosB) * op.B; var c = ((i & 4) >> PosC) * op.C; return(a | b | c); }
public int CompareTo(Multioperation3Unary other) { return(other._val - _val); }
public bool Equals(Multioperation3Unary other) { return(_val == other._val); }