Python.Runtime.DelegateObject.tp_compare C# (CSharp) Method

tp_compare() public static method

public static tp_compare ( IntPtr ob, IntPtr other ) : int
ob System.IntPtr
other System.IntPtr
return int
        public static new int tp_compare(IntPtr ob, IntPtr other)
        {
            Delegate d1 = GetTrueDelegate(ob);
            Delegate d2 = GetTrueDelegate(other);
            if (d1 == d2)
            {
                return 0;
            }
            return -1;
        }