Ejemplo n.º 1
0
        public override object Clone()
        {
            ArithmeticSignPart part = new ArithmeticSignPart();

            part.Id     = this.Id;
            part.Symbol = this.Symbol;

            return(part);
        }
Ejemplo n.º 2
0
        public override int CompareTo(QuestionContentPart other)
        {
            if (this == other)
            {
                return(0);
            }

            if (!(other is ArithmeticSignPart))
            {
                return(-1);
            }

            ArithmeticSignPart signOther = other as ArithmeticSignPart;

            return(this.Symbol - signOther.Symbol);
        }