Example #1
0
 public override int GetHashCode()
 {
     return(0x68377975
            ^ SmallIcon.GetHashCode()
            ^ MediumIcon.GetHashCode()
            ^ LargeIcon.GetHashCode());
 }
Example #2
0
 public override int GetHashCode()
 {
     return(0x68377975
            //It's pretty likely another type will override CreateIcon
            ^ GetType().GetHashCode()
            ^ SmallIcon.GetHashCode()
            ^ MediumIcon.GetHashCode()
            ^ LargeIcon.GetHashCode());
 }
Example #3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = SmallIcon != null?SmallIcon.GetHashCode() : 0;

                hashCode = hashCode * 397 ^ (Icon != null ? Icon.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Featured != null ? Featured.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Other != null ? Other.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #4
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = SmallIcon != null?SmallIcon.GetHashCode() : 0;

                hashCode = hashCode * 397 ^ (Icon != null ? Icon.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Featured != null ? Featured.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Background != null ? Background.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (CoverArt != null ? CoverArt.GetHashCode() : 0);
                hashCode = hashCode * 397 ^ (Decal != null ? Decal.GetHashCode() : 0);
                return(hashCode);
            }
        }