4 new revisions:
Revision: 898b3d493ed6
Author: azizatif
Date: Tue Apr 17 13:09:57 2012
Log: ExtensionAttribute needs to be public only for library builds
http://code.google.com/p/linqbridge/source/detail?r=898b3d493ed6
Revision: 84eadfd7805c
Author: azizatif
Date: Tue Apr 17 13:11:46 2012
Log: Removing duplicate base type spec on partial declaration
http://code.google.com/p/linqbridge/source/detail?r=84eadfd7805c
Revision: 45f171c23dbd
Author: azizatif
Date: Tue Apr 17 13:15:32 2012
Log: Release 1.3 is version number 1.3.14717.2012
http://code.google.com/p/linqbridge/source/detail?r=45f171c23dbd
Revision: b5e19047dce4
Author: azizatif
Date: Tue Apr 17 14:15:10 2012
Log: Adding F# script to generate single LINQBridge source file
version for...
http://code.google.com/p/linqbridge/source/detail?r=b5e19047dce4
==============================================================================
Revision: 898b3d493ed6
Author: azizatif
Date: Tue Apr 17 13:09:57 2012
Log: ExtensionAttribute needs to be public only for library builds
http://code.google.com/p/linqbridge/source/detail?r=898b3d493ed6
Modified:
/src/ExtensionAttribute.cs
/src/Public.cs
=======================================
--- /src/ExtensionAttribute.cs Mon Apr 16 13:05:13 2012
+++ /src/ExtensionAttribute.cs Tue Apr 17 13:09:57 2012
@@ -39,5 +39,5 @@
/// </remarks>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class |
AttributeTargets.Assembly)]
- public sealed class ExtensionAttribute : Attribute { }
-}
+ sealed partial class ExtensionAttribute : Attribute { }
+}
=======================================
--- /src/Public.cs Mon Apr 16 13:01:27 2012
+++ /src/Public.cs Tue Apr 17 13:09:57 2012
@@ -27,15 +27,21 @@
// $Id$
-using System.Collections.Generic;
+#if LINQBRIDGE_LIB
+
namespace System.Linq
{
-#if LINQBRIDGE_LIB
+ using System.Collections.Generic;
public partial class Enumerable { }
public partial interface IGrouping<out TKey, TElement>:
IEnumerable<TElement> { }
public partial interface ILookup<TKey, TElement> { }
public partial interface IOrderedEnumerable<TElement> { }
-
-#endif
-}
+}
+
+namespace System.Runtime.CompilerServices
+{
+ public partial class ExtensionAttribute { }
+}
+
+#endif
==============================================================================
Revision: 84eadfd7805c
Author: azizatif
Date: Tue Apr 17 13:11:46 2012
Log: Removing duplicate base type spec on partial declaration
http://code.google.com/p/linqbridge/source/detail?r=84eadfd7805c
Modified:
/src/Public.cs
=======================================
--- /src/Public.cs Tue Apr 17 13:09:57 2012
+++ /src/Public.cs Tue Apr 17 13:11:46 2012
@@ -31,10 +31,8 @@
namespace System.Linq
{
- using System.Collections.Generic;
-
public partial class Enumerable { }
- public partial interface IGrouping<out TKey, TElement>:
IEnumerable<TElement> { }
+ public partial interface IGrouping<out TKey, TElement> { }
public partial interface ILookup<TKey, TElement> { }
public partial interface IOrderedEnumerable<TElement> { }
}
==============================================================================
Revision: 45f171c23dbd
Author: azizatif
Date: Tue Apr 17 13:15:32 2012
Log: Release 1.3 is version number 1.3.14717.2012
http://code.google.com/p/linqbridge/source/detail?r=45f171c23dbd
Modified:
/src/Properties/AssemblyInfo.cs
=======================================
--- /src/Properties/AssemblyInfo.cs Mon Apr 16 12:45:45 2012
+++ /src/Properties/AssemblyInfo.cs Tue Apr 17 13:15:32 2012
@@ -50,5 +50,5 @@
[assembly: Guid("1d8ca19d-f7ef-47f2-8144-4099aab2b2b7")]
-[assembly: AssemblyVersion("1.2.0.0")]
-[assembly: AssemblyFileVersion("1.2.13216.2214")]
+[assembly: AssemblyVersion("1.3.0.0")]
+[assembly: AssemblyFileVersion("1.3.14717.2012")]
==============================================================================
Revision: b5e19047dce4
Author: azizatif
Date: Tue Apr 17 14:15:10 2012
Log: Adding F# script to generate single LINQBridge source file
version for private embedding scenarios
http://code.google.com/p/linqbridge/source/detail?r=b5e19047dce4
Added:
/onefile.cmd
/onefile.fsx
=======================================
--- /dev/null
+++ /onefile.cmd Tue Apr 17 14:15:10 2012
@@ -0,0 +1,1 @@
+@fsi "%~dpn0.fsx"
=======================================
--- /dev/null
+++ /onefile.fsx Tue Apr 17 14:15:10 2012
@@ -0,0 +1,72 @@
+open System
+open System.IO
+open System.Text.RegularExpressions
+
+printfn @"#region License, Terms and Author(s)
+//
+// LINQBridge
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
+//
+// Author(s):
+//
+// Atif Aziz,
http://www.raboof.com
+//
+// This library is free software; you can redistribute it and/or modify it
+// under the terms of the New BSD License, a copy of which should have
+// been delivered along with this distribution.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// ""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+#endregion
+"
+
+let files = [
+ "Enumerable.cs";
+ "Enumerable.g.cs";
+ "ExtensionAttribute.cs";
+ "Func.cs";
+ "IGrouping.cs";
+ "ILookup.cs";
+ "Internal.cs";
+ "IOrderedEnumerable.cs";
+ "Lookup.cs";
+ "OrderedEnumerable.cs";
+ "Action.cs"
+]
+
+let headless text =
+ let m = Regex.Match(text, @"^(?imsx: \s* \#region \b
+ .+? \#endregion \s*? $ \s* )",
+ RegexOptions.CultureInvariant)
+ if m.Success then true, text.Substring(m.Index + m.Length) else false,
text
+
+let dir =
+ match fsi.CommandLineArgs |> List.ofArray with
+ | _ :: []
+ ->
Directory.EnumerateFiles(Environment.CurrentDirectory, "Enumerable.cs",
SearchOption.AllDirectories)
+ |> Seq.head
+ |> Path.GetDirectoryName
+ | _ :: dir :: _
+ -> dir
+ | _ -> failwith "Unexpected usage!"
+
+let sources = seq {
+ for file in files do
+ let path = Path.Combine(dir, file)
+ let source = File.ReadAllText(path)
+ yield match headless source with
+ | true, source -> source.Trim() + Environment.NewLine
+ | false, _ -> source
+}
+
+sources |> Seq.iter (printfn "%s")