public override object Clone() { QuestionPowerPart newPart = new QuestionPowerPart(); newPart.Id = this.Id; newPart.Content = this.Content.Clone() as QuestionContent; return(newPart); }
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)); }