You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pn...@apache.org on 2011/05/12 03:14:59 UTC
[Lucene.Net] svn commit: r1102154 - /incubator/lucene.net/trunk/src/core/SupportClass.cs
Author: pnasser
Date: Thu May 12 01:14:58 2011
New Revision: 1102154
URL: http://svn.apache.org/viewvc?rev=1102154&view=rev
Log:
LUCENENET-361 Workaround for a Mono C# compiler issue (trunk update)
Modified:
incubator/lucene.net/trunk/src/core/SupportClass.cs
Modified: incubator/lucene.net/trunk/src/core/SupportClass.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/SupportClass.cs?rev=1102154&r1=1102153&r2=1102154&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/core/SupportClass.cs (original)
+++ incubator/lucene.net/trunk/src/core/SupportClass.cs Thu May 12 01:14:58 2011
@@ -1997,11 +1997,16 @@ public class SupportClass
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;