コード例 #1
0
ファイル: AbstractionFile.cs プロジェクト: schotime/bundling
 public override int GetHashCode()
 {
     return
         (FileProvider.GetHashCode() ^
          (FilePath != null ? PathComparer.GetHashCode(FilePath) : 0) ^
          PathComparer.GetHashCode());
 }
コード例 #2
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            int hash = 17;

            hash = (hash * 31) + (FileProvider?.GetHashCode() ?? 0);
            hash = (hash * 31) + FullPath.GetHashCode();
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hashCode = -1540411083;

            hashCode = hashCode * -1521134295 + FileProvider.GetHashCode();
            hashCode = hashCode * -1521134295 + (FilePath != null ? PathComparer.GetHashCode(FilePath) : 0);
            hashCode = hashCode * -1521134295 + PathComparer.GetHashCode();
            return(hashCode);
        }