예제 #1
0
        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));
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            GameStage oGameStage = (GameStage)obj;

            return(this.Stage.Equals(oGameStage.Stage));
        }