Re: [IronPython] Passing arguments to C#

2011-01-04 Thread Dino Viehland
Mark wrote: > I had tried the IList, and it works fine if I send in a list that is > full of > doubles, Using something like mylist = map(float,range(10)) > > That was an awkwardness I wanted to avoid. I wanted to be able to pass in > mylist = range(10) just as easily. > My C# routine will accep

Re: [IronPython] Passing arguments to C#

2011-01-04 Thread Mark Senko
an hide it from my Python users. Mark Senko -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Tuesday, December 28, 2010 10:56 PM To: Discussion of IronPython Subject: Re: [IronPython] Passing argumen

Re: [IronPython] Passing arguments to C#

2010-12-28 Thread Jeff Hardy
On Tue, Dec 28, 2010 at 3:33 PM, Mark Senko wrote: > Public static void TestIt(IList inList) and public static void > TestIt(IronPython.runtime.List inList).  They both act pretty much the same. > I’ve also tried using tuples. > Have you tried using IList or IEnumerable as arguments? IronPython s

Re: [IronPython] Passing arguments to C#

2010-12-28 Thread Richard Nienaber
Hi Mark I managed to find the followingin the mailing list archives which seems to indicate that it was a design decision: We thought the implicit conversion from a List to an array was a little > evil. The array co

[IronPython] Passing arguments to C#

2010-12-28 Thread Mark Senko
I'm trying to set up a simple scripting environment for non-programmers that can call into our C# codebase. Python is a non-typed language, whereas C# is strongly typed. This is one of the reasons IronPython was written. It seems that the solution presented by IronPython is to expose .NET typ

[IronPython] passing arguments to c# params

2009-06-22 Thread Simon Segal
Hi I have a C# method that takes a params as an argument like this: public void methodname(params IEvent[] messages){} When calling this method from IronPyton I get the following error: methodname takes at least 2147483647 arguments (1 given) I have tried calling the metho