Beispiel #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);
     }
 }
Beispiel #2
0
 protected bool Equals(PlaybackSettings other)
 {
     return(SpeedModifier.Equals(other.SpeedModifier) && LeaveLightsOn == other.LeaveLightsOn);
 }