Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ EnabledOn.GetHashCode();
         hashCode = (hashCode * 397) ^ MyAppKey.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 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));
 }