Hi Prescott, Can you apply these fixes also to trunk? They don't diverge from java 2.9.4 and can be compiled targetting .NET 2.0.
LUCENENET-361 Workaround for a Mono C# compiler issue LUCENENET-330 Search.Regex Minimal Port LUCENENET-371 Unit test for Search.Regex port DIGY -----Original Message----- From: pnas...@apache.org [mailto:pnas...@apache.org] Sent: Sunday, May 08, 2011 1:05 AM To: lucene-net-comm...@lucene.apache.org Subject: [Lucene.Net] svn commit: r1100639 - /incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Support/EquatableList.cs Author: pnasser Date: Sat May 7 22:04:43 2011 New Revision: 1100639 URL: http://svn.apache.org/viewvc?rev=1100639&view=rev Log: LUCENENET-361 Workaround for a Mono C# Compiler issue Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Support/EquatableList.cs Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Support/EquatableList.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Support/EquatableList.cs?rev=1100639&r1=1100638&r2=1100639&view=diff ============================================================================== --- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Support/EquatableList.cs (original) +++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Support/EquatableList.cs Sat May 7 22:04:43 2011 @@ -230,12 +230,16 @@ namespace Lucene.Net.Support return GetHashCode(this); } +#if __MonoCS__ + public static int GetHashCode<T>(System.Collections.Generic.IEnumerable<T> source) +#else /// <summary>Gets the hash code for the list.</summary> - /// <param name="source">The <see cref="IEnumerable{T}"/> + /// <param name="source">The <see cref="IEnumerable<T>"/> /// implementation which will have all the contents hashed.</param> /// <returns>The hash code value.</returns> public static int GetHashCode(System.Collections.Generic.IEnumerable<T> source) - { +#endif + { // If source is null, then return 0. if (source == null) return 0;