Ejemplo 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);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 => HashUtils.Create().Append(Top)
 .Append(Left)
 .Append(Bottom)
 .Append(Right);
Ejemplo n.º 3
0
 public override int GetHashCode()
 => HashUtils.Create()
 .Append(types);