コード例 #1
0
 public bool DeepEquals(EmailSettings?other)
 {
     return(other is not null &&
            OptInDefinitions.DeepEqualsDictionary(other.OptInDefinitions) &&
            SubscriptionDefinitions.DeepEqualsDictionary(other.SubscriptionDefinitions) &&
            Views.DeepEqualsDictionary(other.Views));
 }
コード例 #2
0
 public void Update(EmailSettings?other)
 {
     if (other is null)
     {
         return;
     }
     if (!OptInDefinitions.DeepEqualsDictionary(other.OptInDefinitions))
     {
         OptInDefinitions = other.OptInDefinitions;
         OnPropertyChanged(nameof(OptInDefinitions));
     }
     if (!SubscriptionDefinitions.DeepEqualsDictionary(other.SubscriptionDefinitions))
     {
         SubscriptionDefinitions = other.SubscriptionDefinitions;
         OnPropertyChanged(nameof(SubscriptionDefinitions));
     }
     if (!Views.DeepEqualsDictionary(other.Views))
     {
         Views = other.Views;
         OnPropertyChanged(nameof(Views));
     }
 }