コード例 #1
0
ファイル: ComplexId.cs プロジェクト: robws/todoist-net
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return((PersistentId.GetHashCode() * 397) ^ TempId.GetHashCode());
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((PersistentId.GetHashCode() * 397) ^ (ProvisionalPathPair != null ? ProvisionalPathPair.GetHashCode() : 0));
     }
 }