Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Text.GetHashCode() * 397) ^
                (CursorPosition.GetHashCode() * 397) ^
                (ProjectColor.GetHashCode() * 397) ^
                (Tags.Length.GetHashCode() * 397) ^
                ProjectName.GetHashCode());
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = base.GetHashCode();
         hash = hash * 37 + (GameTime != null ? GameTime.GetHashCode() : 0);
         hash = hash * 37 + (MouseState != null ? MouseState.GetHashCode() : 0);
         hash = hash * 37 + (TouchState != null ? TouchState.GetHashCode() : 0);
         hash = hash * 37 + (CursorPosition != null ? CursorPosition.GetHashCode() : 0);
         hash = hash * 37 + (ObjectPool != null ? ObjectPool.GetHashCode() : 0);
         return(hash);
     }
 }