lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy" <digyd...@gmail.com>
Subject RE: [Lucene.Net] svn commit: r1100639 - /incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Support/EquatableList.cs
Date Sat, 07 May 2011 22:23:49 GMT
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: pnasser@apache.org [mailto:pnasser@apache.org] 
Sent: Sunday, May 08, 2011 1:05 AM
To: lucene-net-commits@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;
 



Mime
View raw message