Beispiel #1
0
        public override int GetHashCode()
        {
            if (hashcode.HasValue)
            {
                return(hashcode.Value);
            }

            unchecked
            {
                hashcode = (int)2166136261;
                hashcode = hashcode * 1677619 + (LocalBranch?.GetHashCode() ?? 0);
                hashcode = hashcode * 1677619 + (RemoteBranch?.GetHashCode() ?? 0);
                hashcode = hashcode * 1677619 + Ahead.GetHashCode();
                hashcode = hashcode * 1677619 + Behind.GetHashCode();
                foreach (var entry in Entries)
                {
                    hashcode = hashcode * 1677619 + entry.GetHashCode();
                }
                return(hashcode.Value);
            }
        }
Beispiel #2
0
 public Dependencia(string nome, string versao, LocalBranch branch)
 {
     Nome   = nome;
     Versao = versao;
 }