コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PlaybackSettings != null ? PlaybackSettings.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ColorSettings != null ? ColorSettings.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DeviceSettings != null ? DeviceSettings.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (EffectPatterns != null ? EffectPatterns.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
 protected bool Equals(ColorSettings other)
 {
     return(PrimaryColor.Equals(other.PrimaryColor) && SecondaryColor.Equals(other.SecondaryColor) && StandbyColor.Equals(other.StandbyColor));
 }