Пример #1
0
 public int CompareTo(Block other)
 {
     if (Sid == other.Sid)
     {
         return(MinTime.CompareTo(other.MinTime));
     }
     return(Sid.CompareTo(other.Sid));
 }
        //IComparable Overrides:
        public int CompareTo(object obj)
        {
            var full = obj as ComputerPrincipalFull;

            if (full != null)
            {
                var c = full;
                return(Sid.CompareTo(c.Sid));
            }
            return(1);
        }