Пример #1
0
        public GraphicsElement(int id, int typeId)
        {
            Id     = id;
            TypeId = typeId;

            // Precompute hash for faster lookups.
            hash = HashUtils.Create()
                   .Append(Id)
                   .Append(typeId);
        }
Пример #2
0
 public override int GetHashCode()
 => HashUtils.Create().Append(Top)
 .Append(Left)
 .Append(Bottom)
 .Append(Right);
Пример #3
0
 public override int GetHashCode()
 => HashUtils.Create()
 .Append(types);