Esempio n. 1
0
        public GraphicsElement(int id, int typeId)
        {
            Id     = id;
            TypeId = typeId;

            // Precompute hash for faster lookups.
            hash = HashUtils.Create()
                   .Append(Id)
                   .Append(typeId);
        }
Esempio n. 2
0
 public override int GetHashCode()
 => HashUtils.Create().Append(Top)
 .Append(Left)
 .Append(Bottom)
 .Append(Right);
Esempio n. 3
0
 public override int GetHashCode()
 => HashUtils.Create()
 .Append(types);