public int CompareTo(object obj) { if (obj is PersonStruct) { PersonStruct that = (PersonStruct)obj; if (that < this) { return(-1); } if (that > this) { return(1); } return(0); } return(0); }
public int CompareTo(object obj) { if (obj is PersonStruct) { PersonStruct that = (PersonStruct)obj; if (that < this) { return(-1); } if (that > this) { return(1); } return(0); } return(0); }