Beispiel #1
0
 public override int GetHashCode()
 {
     return(base.GetHashCode()
            ^ Height
            ^ Width
            ^ SurfaceFormat.GetHashCode());
 }
Beispiel #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);
        }