Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <inheritdoc/>
 public bool Equals(AttributeValue other)
 {
     return(NativeAttribute.Equals(other.NativeAttribute));
 }
Ejemplo n.º 3
0
 /// <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));
 }