public virtual bool Equals(InteropObject other) { if (null == other) { return(false); } if (PInvokeUtil.IsNull(this.mSelfPointer)) { return(PInvokeUtil.IsNull(other.mSelfPointer)); } return(mSelfPointer.Handle == other.mSelfPointer.Handle && this.mIsDisposed == other.mIsDisposed); }
public bool HasSamePointerWith(InteropObject other) { return(other != null && this.ToPointer().Equals(other.ToPointer())); }