[ https://issues.apache.org/jira/browse/LUCENENET-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067366#comment-13067366 ]
Digy commented on LUCENENET-437: -------------------------------- See even with worst implementation, "Equals" method should work. {code} /// private void Form1_Load(object sender, EventArgs e) { Hashtable h = new Hashtable(); MyClass m1 = new MyClass() { I = 1 }; MyClass m2 = new MyClass() { I = 2 }; h.Add(m1,1); h.Add(m2,2); System.Diagnostics.Debug.Assert(h[m2].Equals(2)); } public class MyClass { public int I; public override int GetHashCode() { return 1; } } {code} > Port Contrib.Shingle from Java > ------------------------------ > > Key: LUCENENET-437 > URL: https://issues.apache.org/jira/browse/LUCENENET-437 > Project: Lucene.Net > Issue Type: Task > Components: Lucene.Net Contrib, Lucene.Net Test > Affects Versions: Lucene.Net 2.9.4, Lucene.Net 2.9.4g > Reporter: Troy Howard > Assignee: Troy Howard > Priority: Minor > Fix For: Lucene.Net 2.9.4, Lucene.Net 2.9.4g > > > Port Contrib.Shingle from Java -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira