예제 #1
0
        public override object Clone()
        {
            QuestionPowerPart newPart = new QuestionPowerPart();

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

            return(newPart);
        }
예제 #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));
        }