Пример #1
0
        public static void EqualsTest(nuint value, object obj, bool expected)
        {
            if (obj is nuint other)
            {
                Assert.Equal(expected, value == other);
                Assert.Equal(!expected, value != other);
                Assert.Equal(expected, value.GetHashCode().Equals(other.GetHashCode()));

                IEquatable <nuint> iEquatable = value;
                Assert.Equal(expected, iEquatable.Equals((nuint)obj));
            }
            Assert.Equal(expected, value.Equals(obj));
            Assert.Equal(value.GetHashCode(), value.GetHashCode());
        }
Пример #2
0
 public bool Equals(WPARAM other) => Value.Equals(other.Value);
Пример #3
0
 /// <inheritdoc cref="IEquatable{T}.Equals(T)" />
 public bool Equals(NativeULong other) =>
 UseInt ? _intValue == other._intValue : _pointerValue.Equals(other._pointerValue);
Пример #4
0
 public bool Equals(pthread_t other) => Value.Equals(other.Value);