public MyIntegerLib prod(MyIntegerLib _other) { MyIntegerLib sum_ = new MyIntegerLib(field); sum_.field *= _other.field; return(sum_); }
public override bool Equals(object _other) { if (_other == null) { return(false); } /*if (myInt_ == null) * { * return false; * }*/ if (_other.GetType() != typeof(MyIntegerLib)) { return(false); } MyIntegerLib myInt_ = _other as MyIntegerLib; return(myInt_.field == field); }