public bool Equals(WalkData <T> other) { if (other == null) { return(false); } return (Status.Equals(other.Status) && Index.Equals(other.Index) && Value.Equals(other.Value)); }
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)); }
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)); }
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)); }
public override bool Equals(object obj) { WalkData <T> walkData = obj as WalkData <T>; return(Equals(walkData)); }