Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (SelectedSource != null ? SelectedSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FromPath != null ? FromPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ToPath != null ? ToPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OverWriteMode.GetHashCode();
         hashCode = (hashCode * 397) ^ AddMode.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() ^ Kind.GetHashCode() ^ FromPath.GetHashCode()
            ^ FromRevision.GetHashCode() ^ Actions.GetHashCode());
 }