protected int Compare(T a, T b) { CompareEvent?.Invoke(this, new Tuple <T, T>(a, b)); ComparisonCount++; return(a.CompareTo(b)); }
public void CompareNumbers(int n) { if (Myint > n) { Console.WriteLine("boyukdur"); } else { CompareEvent?.Invoke(n, Myint); } }
public void CompareNumbers(int cmv) { if (Myint > cmv) { Console.WriteLine("boyukdur"); } else { CompareEvent.Invoke(cmv, Myint); } }
protected int Compare(int index1, int index2) { if (index1 < Items.Count && index2 < Items.Count) { CompareEvent?.Invoke(this, new Tuple <T, T>(Items[index1], Items[index2])); ComparisonCount++; return(Items[index1].CompareTo(Items[index2])); } else { throw new ArgumentOutOfRangeException(); } }
public void Call_CompareEvent(object sender, Tuple <T, T> e) { CompareEvent?.Invoke(sender, e); }
public int Compare(T x, T y) { CompareEvent?.Invoke(this, new Tuple <T, T>(x, y)); return(x.CompareTo(y)); }
public int Compare(int firstIndex, int secondIndex) { CompareEvent?.Invoke(this, new Tuple <int, int>(firstIndex, secondIndex)); CompareCount++; return(Items[firstIndex].CompareTo(Items[secondIndex])); }
private void OnCompare(object sender, Tuple <T, T> e) { _result.ComparsionsCount++; CompareEvent?.Invoke(this, e); }