예제 #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
파일: UiLayout.cs 프로젝트: Babelz/Fracture
 public override int GetHashCode()
 => HashUtils.Create().Append(Top)
 .Append(Left)
 .Append(Bottom)
 .Append(Right);
예제 #3
0
 public override int GetHashCode()
 => HashUtils.Create()
 .Append(types);