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 +, Jonathan Pryor wrote:
On Mar 17, 2013, at 11:54 AM, Dale Ragan
On Mar 18, 2013, at 4:33 AM, Ian Norton
ian.norton-bad...@thales-esecurity.com wrote:
You probably mean to do:
$ csharp -r:System.Core
That shouldn't be necessary at all; System.Core.dll should be in the default
assembly include set and `using System.Linq` should be in the default
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:
(1,15): error CS0234: The type or namespace name `Core' does not exist in
the namespace `System'. Are you missing an assembly reference?
Is there something special I need
On Mar 17, 2013, at 11:54 AM, Dale Ragan d...@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.
It seems there is an additional obstacle to overcome before I could
even try to get command line arguments from Environment.CommandLine.
$csharp foo bar
cs2001: Source file
`/source/local/private/main/developer/slessard/tools/foo' not found
$csharp -foo -bar
error CS2007: Unrecognized
Hi,
I'm trying to write a shell script in C# using the csharp REPL. The
script below works fine as is on OS X, but I would like to pass an
argument into this script. I haven't been able to find any docs on how
to do this and all of my experiments have turned up nothing. Is there a
way to
Try looking at Mono.Options (aka NDesk.Options)
That works quite well for me.
Oh.. You don't have a main in repl that gets argv...
Are the command line arguments stored in the environment somewhere?
Ian
On 28 Jun 2011, at 18:59, Steve Lessard s_less...@yahoo.com wrote:
Hi,
I'm trying to
Hi,
Arguments should be stored in Environment.CommandLine.
Regards,
Alex
On Tue, Jun 28, 2011 at 7:58 PM, Ian Norton
ian.norton-bad...@thales-esecurity.com wrote:
Try looking at Mono.Options (aka NDesk.Options)
That works quite well for me.
Oh.. You don't have a main in repl that gets
?
From: Ian Norton ian.norton-bad...@thales-esecurity.com
To: Miguel de Icaza mig...@novell.com
Cc: Steve Lessard s_less...@yahoo.com; Mono Mono-list@lists.ximian.com
Sent: Fri, March 4, 2011 10:44:28 PM
Subject: Re: [Mono-list] csharp REPL scripts
Would
#!/usr/bin/env csharp
Work
?
_
From: Ian Norton ian.norton-bad...@thales-esecurity.com
To: Miguel de Icaza mig...@novell.com
Cc: Steve Lessard s_less...@yahoo.com; Mono
Mono-list@lists.ximian.com
Sent: Fri, March 4, 2011 10:44:28 PM
Subject: Re: [Mono-list] csharp REPL scripts
Would
#!/usr/bin/env csharp
Work?
Ian
On 5 Mar
Hello,
Seems to be a problem with the way OSX launches the program, try
this instead for the first line:
#!/usr/bin/mono
/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.0/csharp.exe
On Thu, Mar 3, 2011 at 1:10 PM, Steve Lessard s_less...@yahoo.com wrote:
I read in the
Would
#!/usr/bin/env csharp
Work?
Ian
On 5 Mar 2011, at 01:29, Miguel de Icaza mig...@novell.com wrote:
Hello,
Seems to be a problem with the way OSX launches the program, try
this instead for the first line:
#!/usr/bin/mono
I read in the release notes for Mono 2.10
(http://www.mono-project.com/Release_Notes_Mono_2.10) that the C# REPL now can
be used as a program to run C# scripts in Unix. Your Unix scripts can now
contain as their first line the #!/usr/bin/csharp line which allows you to
create C# scripts that
13 matches
Mail list logo