Esempio n. 1
0
        public override object Clone()
        {
            QuestionPowerPart newPart = new QuestionPowerPart();

            newPart.Id      = this.Id;
            newPart.Content = this.Content.Clone() as QuestionContent;

            return(newPart);
        }
Esempio n. 2
0
        public override int CompareTo(QuestionContentPart other)
        {
            if (this == other)
            {
                return(0);
            }

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

            QuestionPowerPart otherPower = other as QuestionPowerPart;

            return(this.Content.CompareTo(otherPower.Content));
        }