forked from tpolyak/Sharp-Architecture
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified the hashcode multipler used by BaseObject.cs and Entity.cs t…
…o be 31 based on information found at http://computinglife.wordpress.com/2008/11/20/why-do-hash-functions-use-prime-numbers/ and other sources. Modified Entity.cs to include the object's type in the hashcode calculation, in addition to its Id, for persistent objects. Added a couple of tests to prove all of this working, including one using LINQ's Intersect with BaseObjectEqualityComparer.cs.
- Loading branch information
wmccafferty
committed
May 25, 2009
1 parent
e67e66e
commit b58ad06
Showing
5 changed files
with
101 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters