Beispiel #1
0
 protected bool Equals(ApplicationSpec other)
 {
     return(Equals(ApplicationDestination, other.ApplicationDestination) &&
            IgnoreDifferences.IsCollectionEqualTo(other.IgnoreDifferences) &&
            Equals(Info, other.Info) &&
            Project == other.Project &&
            Equals(ApplicationSource, other.ApplicationSource) &&
            Equals(ArgoApplicationSyncPolicy, other.ArgoApplicationSyncPolicy));
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ApplicationDestination != null ? ApplicationDestination.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IgnoreDifferences != null ? IgnoreDifferences.GetCollectionHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Info != null ? Info.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Project != null ? Project.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApplicationSource != null ? ApplicationSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ArgoApplicationSyncPolicy != null ? ArgoApplicationSyncPolicy.GetHashCode() : 0);
         return(hashCode);
     }
 }