TileIconifier.Core.Shortcut.ShortcutItemImage.GetHashCode C# (CSharp) 메소드

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int
        public override int GetHashCode()
        {
            // Getting hash codes from volatile variables doesn't seem a good move... //TODO Find an immutable way?
            var hashCode = Bytes?.GetHashCode() ?? 0;
            hashCode = (hashCode*397) ^ X;
            hashCode = (hashCode*397) ^ Y;
            hashCode = (hashCode*397) ^ Width;
            hashCode = (hashCode*397) ^ Height;
            return hashCode;
        }