bool IValueEquality.ValueEquals(object other) { weakproxy wrp = other as weakproxy; if (wrp != null) { return(EqualsWorker(wrp)); } return(PythonOps.EqualRetBool(_context, GetObject(), other)); }
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)); }
private bool EqualsWorker(weakproxy other) { return(PythonOps.EqualRetBool(_context, GetObject(), other.GetObject())); }
private bool EqualsWorker(weakproxy other) { return PythonOps.EqualRetBool(_context, GetObject(), other.GetObject()); }