You probably mean to do:
$ csharp -r:System.Core
> using System.Linq;
> var x = new int[] { 1,2,3,4,5,6 };
> var y = (from i in x where i > 4 select x).Skip(1).FirstOrDefault();
Ian
On Sun, Mar 17, 2013 at 06:44:25PM +0000, Jonathan Pryor wrote:
> On Mar 17, 2013, at 11:54 AM, Dale Ragan <[email protected]> wrote:
> > I was playing with the csharp REPL today after upgrading my install to
> > 3.0.6 and I tried using System.Core, but it returns:
>
> System.Core is an assembly (System.Core.dll), not a namespace. There is no
> "System.Core" namespace. System.Core.dll contains types in the namespaces
> System.IO, System.Linq, System.Threading, and others:
>
> https://github.com/mono/mono/tree/master/mcs/class/System.Core
>
> `using System.Core;` is thus not valid in a C# app, unless you yourself have
> declared types in a "System.Core" namespace.
>
> - Jon
>
> _______________________________________________
> Mono-list maillist - [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list