Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ CornerArea.GetHashCode();
         hashCode = (hashCode * 397) ^ Margins.GetHashCode();
         return(hashCode);
     }
 }
Example #2
0
 public bool Equals(BoxTexture other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) && CornerArea.Equals(other.CornerArea) && Margins.Equals(other.Margins));
 }
            public override int GetHashCode()
            {
                unchecked
                {
                    var hashCode = Name != null?Name.GetHashCode() : 0;

                    hashCode = (hashCode * 397) ^ Width;
                    hashCode = (hashCode * 397) ^ Height;
                    hashCode = (hashCode * 397) ^ CornerArea.GetHashCode();
                    hashCode = (hashCode * 397) ^ Margins.GetHashCode();
                    return(hashCode);
                }
            }
 public bool Equals(TestUITexture other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(Name, other.Name) && Width == other.Width && Height == other.Height && CornerArea.Equals(other.CornerArea) && Margins.Equals(other.Margins));
 }