[Mono-list] csharp REPL
Ian Norton
ian.norton-badrul at thales-esecurity.com
Mon Mar 18 08:33:48 UTC 2013
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 <dale at ragan.io> 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 - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list