Exemplo n.º 1
0
 public bool Equals(EffectConstantBufferKey other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(HashCode == other.HashCode && Description.Equals(other.Description));
 }
Exemplo n.º 2
0
        /// <summary>Indicates whether the current object is equal to another object of the same type.</summary>
        /// <param name="other">An object to compare with this object.</param>
        /// <returns>true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.</returns>
        public bool Equals(EffectConstantBuffer other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            // Fast comparison using hashCode.
            return(hashCode == other.hashCode && Description.Equals(other.Description));
        }