Esempio n. 1
0
        public MyIntegerLib prod(MyIntegerLib _other)
        {
            MyIntegerLib sum_ = new MyIntegerLib(field);

            sum_.field *= _other.field;
            return(sum_);
        }
Esempio n. 2
0
        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);
        }