示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((EntryDate.GetHashCode() * 397) ^ EntryName.GetHashCode());
     }
 }
                public override int GetHashCode()
                {
                    const int MagicValue = -1521134295;
                    var       hashCode   = -1211575830;

                    hashCode = (hashCode * MagicValue) + EntryName.GetHashCode();
                    hashCode = (hashCode * MagicValue) + Justification?.GetHashCode() ?? 0;
                    hashCode = (hashCode * MagicValue) + Alternative?.GetHashCode() ?? 0;
                    hashCode = (hashCode * MagicValue) + Assemblies?.GetHashCode() ?? 0;

                    return(hashCode);
                }
示例#3
0
 public override int GetHashCode()
 {
     return(PackageFile.GetHashCode() ^ EntryName.GetHashCode());
 }