Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return(base.GetHashCode()
            ^ Height
            ^ Width
            ^ SurfaceFormat.GetHashCode());
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            var hash = 0;

            hash = (hash * 397) ^ SurfaceFormat.GetHashCode();
            hash = (hash * 397) ^ Width.GetHashCode();
            hash = (hash * 397) ^ Height.GetHashCode();

            return(hash);
        }