lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [5/5] lucenenet git commit: Start bringing in BCL bits to reuse available bits
Date Fri, 07 Nov 2014 03:59:52 GMT
Start bringing in BCL bits to reuse available bits


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/e07d1137
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/e07d1137
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/e07d1137

Branch: refs/heads/master
Commit: e07d113722767b141d986ed0c2f73daf2e792198
Parents: a37fd38
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Fri Nov 7 05:59:40 2014 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Fri Nov 7 05:59:40 2014 +0200

----------------------------------------------------------------------
 src/Lucene.Net.Core/Lucene.Net.csproj                  |  4 ++++
 .../Support/Compatibility/Collections.cs               | 13 +++++++++++++
 src/Lucene.Net.Core/packages.config                    |  1 +
 3 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e07d1137/src/Lucene.Net.Core/Lucene.Net.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Lucene.Net.csproj b/src/Lucene.Net.Core/Lucene.Net.csproj
index 21b0f92..58a6c8a 100644
--- a/src/Lucene.Net.Core/Lucene.Net.csproj
+++ b/src/Lucene.Net.Core/Lucene.Net.csproj
@@ -45,6 +45,9 @@
     </Reference>
     <Reference Include="Microsoft.CSharp" />
     <Reference Include="System" />
+    <Reference Include="System.Collections.Immutable">
+      <HintPath>..\..\packages\Microsoft.Bcl.Immutable.1.0.34\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath>
+    </Reference>
     <Reference Include="System.configuration" />
     <Reference Include="System.Core" />
     <Reference Include="System.Data" />
@@ -614,6 +617,7 @@
     <Compile Include="Support\ByteBuffer.cs" />
     <Compile Include="Support\Character.cs" />
     <Compile Include="Support\Arrays.cs" />
+    <Compile Include="Support\Compatibility\Collections.cs" />
     <Compile Include="Support\ConcurrentHashMap.cs" />
     <Compile Include="Support\ConcurrentHashMapWrapper.cs" />
     <Compile Include="Support\ConcurrentHashSet.cs" />

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e07d1137/src/Lucene.Net.Core/Support/Compatibility/Collections.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Compatibility/Collections.cs b/src/Lucene.Net.Core/Support/Compatibility/Collections.cs
new file mode 100644
index 0000000..96511b7
--- /dev/null
+++ b/src/Lucene.Net.Core/Support/Compatibility/Collections.cs
@@ -0,0 +1,13 @@
+´╗┐using System.Collections.Generic;
+using System.Collections.Immutable;
+
+namespace Lucene.Net
+{
+    public static class Collections
+    {
+        public static ISet<T> Singleton<T>(T o)
+        {
+            return ImmutableHashSet.Create(o);
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e07d1137/src/Lucene.Net.Core/packages.config
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/packages.config b/src/Lucene.Net.Core/packages.config
index a0606b4..40ec27e 100644
--- a/src/Lucene.Net.Core/packages.config
+++ b/src/Lucene.Net.Core/packages.config
@@ -1,4 +1,5 @@
 ´╗┐<?xml version="1.0" encoding="utf-8"?>
 <packages>
+  <package id="Microsoft.Bcl.Immutable" version="1.0.34" targetFramework="net451" />
   <package id="SharpZipLib" version="0.86.0" targetFramework="net40-Client" />
 </packages>
\ No newline at end of file


Mime
View raw message