public override int GetHashCode() { unchecked { var hashCode = IsEnabled.GetHashCode(); hashCode = (hashCode * 397) ^ EnabledOn.GetHashCode(); hashCode = (hashCode * 397) ^ MyAppKey.GetHashCode(); return(hashCode); } }
public bool Equals(MyConfigured other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(IsEnabled == other.IsEnabled && EnabledOn.Equals(other.EnabledOn) && string.Equals(MyAppKey, other.MyAppKey)); }