/// <inheritdoc/> public override bool Equals(object obj) { if (obj is AttributeValue attrib) { return(Equals(attrib)); } if (obj is UIntPtr) { return(NativeAttribute.Equals(obj)); } return(false); }
/// <inheritdoc/> public bool Equals(AttributeValue other) { return(NativeAttribute.Equals(other.NativeAttribute)); }
/// <summary>Performs equality checks against an <see cref="object"/></summary> /// <param name="obj">object to test for equality with this instance</param> /// <returns><see langword="true"/> if <paramref name="obj"/> is equal to this instance</returns> public override bool Equals(object obj) { return(obj is AttributeValue attrib?Equals(attrib) : obj is UIntPtr && NativeAttribute.Equals(obj)); }