Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + (path?.GetHashCode() ?? 0);
            hash = hash * 23 + (fullPath?.GetHashCode() ?? 0);
            hash = hash * 23 + (projectPath?.GetHashCode() ?? 0);
            hash = hash * 23 + (originalPath?.GetHashCode() ?? 0);
            hash = hash * 23 + status.GetHashCode();
            hash = hash * 23 + staged.GetHashCode();
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + (path?.GetHashCode() ?? 0);
            hash = hash * 23 + (fullPath?.GetHashCode() ?? 0);
            hash = hash * 23 + (projectPath?.GetHashCode() ?? 0);
            hash = hash * 23 + (originalPath?.GetHashCode() ?? 0);
            hash = hash * 23 + indexStatus.GetHashCode();
            hash = hash * 23 + workTreeStatus.GetHashCode();
            return(hash);
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = (int)2166136261;
         hash = hash * 1677619 + GetPath(path)?.GetHashCode() ?? 0;
         hash = hash * 1677619 + GetPath(fullPath)?.GetHashCode() ?? 0;
         hash = hash * 1677619 + GetPath(projectPath)?.GetHashCode() ?? 0;
         hash = hash * 1677619 + GetPath(originalPath)?.GetHashCode() ?? 0;
         hash = hash * 1677619 + indexStatus.GetHashCode();
         hash = hash * 1677619 + workTreeStatus.GetHashCode();
         return(hash);
     }
 }