Example #1
0
        public static PairNode2 XmlDeserialize(string xml)
        {
            try
            {
                PairNode2 pair = (PairNode2)XmlDeserialize(xml);

                return(pair);
            }
            catch (Exception)
            {
                return(null);
            }
        }
Example #2
0
        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);
            }
        }