public int CompareTo(object obj) { if (!(obj is Character)) { throw new ArgumentException("Object is not Character"); } return(Exp.CompareTo((obj as Character).Exp)); }