Beispiel #1
0
        public bool Equals(WalkData <T> other)
        {
            if (other == null)
            {
                return(false);
            }

            return
                (Status.Equals(other.Status) &&
                 Index.Equals(other.Index) &&
                 Value.Equals(other.Value));
        }
Beispiel #2
0
 public static int Compare(WalkData <T> objA, WalkData <T> objB)
 {
     if (objA == null)
     {
         if (objB == null)
         {
             return(0);
         }
         else
         {
             return(-1);
         }
     }
     return(objA.CompareTo(objB));
 }
Beispiel #3
0
 public static bool Equals(WalkData <T> objA, WalkData <T> objB)
 {
     if ((object)objA == null)
     {
         if ((object)objB == null)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     return(objA.Equals(objB));
 }
Beispiel #4
0
        public int CompareTo(WalkData <T> other)
        {
            if (other == null)
            {
                return(1);
            }

            int result = Status.CompareTo(other.Status);

            if (result != 0)
            {
                return(result);
            }

            result = Index.CompareTo(other.Index);

            if (result != 0)
            {
                return(result);
            }

            return(Value.CompareTo(other.Value));
        }
Beispiel #5
0
        public override bool Equals(object obj)
        {
            WalkData <T> walkData = obj as WalkData <T>;

            return(Equals(walkData));
        }