示例#1
0
            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)));
            }
示例#2
0
            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)));
            }
示例#3
0
            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;
            }
示例#4
0
 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));
 }
示例#5
0
            public override bool Equals(object obj)
            {
                Pair rhs = obj as Pair;

                return(rhs == null ? false : Key.Equals(rhs.Key) && Value.Equals(rhs.Value));
            }