public static PairNode2 XmlDeserialize(string xml) { try { PairNode2 pair = (PairNode2)XmlDeserialize(xml); return(pair); } catch (Exception) { return(null); } }
public int CompareTo(object obj) { if (!(obj is PairNode2)) { throw new ArgumentException("Object is not an instance of class PairNode."); } PairNode2 pair = (PairNode2)obj; if (pair.PairID == this.PairID) { return(0); } else if (PairID > pair.PairID) { return(1); } else { return(-1); } }