public static int GetIndex(MonaBinarySetOperator op) { switch (op) { case MonaBinarySetOperator.Intersection: return(0); case MonaBinarySetOperator.Union: return(1); default: throw new MonaException("undefined operator"); } }
public MonaSetBinary(MonaSet set1, MonaSet set2, MonaBinarySetOperator op) { this.set1 = set1; this.set2 = set2; this.op = op; }
public static int GetIndex(MonaBinarySetOperator op) { switch (op) { case MonaBinarySetOperator.Intersection: return 0; case MonaBinarySetOperator.Union: return 1; default: throw new MonaException("undefined operator"); } }