Exemple #1
0
            bool IValueEquality.ValueEquals(object other)
            {
                weakproxy wrp = other as weakproxy;

                if (wrp != null)
                {
                    return(EqualsWorker(wrp));
                }

                return(PythonOps.EqualRetBool(_context, GetObject(), other));
            }
Exemple #2
0
            bool IStructuralEquatable.Equals(object other, IEqualityComparer comparer)
            {
                object obj;

                if (!TryGetObject(out obj))
                {
                    obj = null;
                }

                weakproxy wrp = other as weakproxy;

                if (wrp != null)
                {
                    object otherObj;
                    if (!TryGetObject(out otherObj))
                    {
                        otherObj = null;
                    }

                    return(comparer.Equals(obj, otherObj));
                }

                return(comparer.Equals(obj, other));
            }
Exemple #3
0
 private bool EqualsWorker(weakproxy other)
 {
     return(PythonOps.EqualRetBool(_context, GetObject(), other.GetObject()));
 }
Exemple #4
0
 private bool EqualsWorker(weakproxy other) {
     return PythonOps.EqualRetBool(_context, GetObject(), other.GetObject());
 }