コード例 #1
0
        public override int GetHashCode()
        {
            int hashCode = -2072340198;

            hashCode = hashCode * -1521134295 + ManagerId.GetHashCode();
            hashCode = hashCode * -1521134295 + Path.GetHashCode();
            hashCode = hashCode * -1521134295 + Query.GetHashCode();
            return(hashCode);
        }
コード例 #2
0
ファイル: Employee.cs プロジェクト: texyh/SalaryCalculator
        public override int GetHashCode()
        {
            int hashCode = -782252986;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Email);

            hashCode = hashCode * -1521134295 + Experience.GetHashCode();
            hashCode = hashCode * -1521134295 + PositionId.GetHashCode();
            hashCode = hashCode * -1521134295 + SalaryCategoryId.GetHashCode();
            hashCode = hashCode * -1521134295 + ManagerId.GetHashCode();
            return(hashCode);
        }
コード例 #3
0
ファイル: BundleCache.cs プロジェクト: gitter-badger/bundling
 public override int GetHashCode()
 {
     return(ManagerId.GetHashCode() ^ Path.GetHashCode() ^ Query.GetHashCode());
 }