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); } }
protected bool Equals(ColorSettings other) { return(PrimaryColor.Equals(other.PrimaryColor) && SecondaryColor.Equals(other.SecondaryColor) && StandbyColor.Equals(other.StandbyColor)); }