public int CompareTo(object obj) { if (obj.GetType() != this.GetType()) { throw new ArgumentException("obj is not a GameStage."); } GameStage objGameStage = (GameStage)obj; return(this.StageNum.CompareTo(objGameStage.StageNum)); }
public override bool Equals(object obj) { if (this.GetType() != obj.GetType()) { return(false); } GameStage oGameStage = (GameStage)obj; return(this.Stage.Equals(oGameStage.Stage)); }