public override bool Equals(object obj) { Entry entry = obj as Entry; if (entry == null) { return(false); } if (entry == this) { return(true); } bool num; if (key != null) { TKey val = key; num = val.Equals(entry.Key); } else { num = entry.Key == null; } return(num && ((evalue == null) ? (entry.Value == null) : evalue.Equals(entry.Value))); }
public override bool Equals(object obj) { Entry other = obj as Entry; if (other == null) { return(false); } if (other == this) { return(true); } return((key == null ? other.Key == null : key.Equals(other.Key)) && (evalue == null ? other.Value == null : evalue.Equals(other.Value))); }
public bool Equals(Entry other) { if (this == other) { return true; } TKey otherKey = other.key; if (key != null && key.Equals(otherKey)) { TValue otherValue = other.val; if (val != null && val.Equals(otherValue)) { return true; } } return false; }
private bool Equals(LinearFitResult other) { return(EstimatedValue.Equals(other.EstimatedValue) && StandardError.Equals(other.StandardError) && TValue.Equals(other.TValue) && DegreesOfFreedom == other.DegreesOfFreedom && PValue.Equals(other.PValue)); }
public override bool Equals(object obj) { Pair rhs = obj as Pair; return(rhs == null ? false : Key.Equals(rhs.Key) && Value.Equals(rhs.Value)); }