コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || !(obj is Attribute))
            {
                return(false);
            }

            //
            // This is needed because Attribute.Equals does a deep
            // compare.  Ran into this with vbnc
            //
            return(ValueType.DefaultEquals(this, obj));
        }
コード例 #2
0
 /// <summary>Indicates whether this instance and a specified object are equal.</summary>
 /// <returns>true if <paramref name="obj" /> and this instance are the same type and represent the same value; otherwise, false.</returns>
 /// <param name="obj">Another object to compare to. </param>
 /// <filterpriority>2</filterpriority>
 public override bool Equals(object obj)
 {
     return(ValueType.DefaultEquals(this, obj));
 }