passing arguments to c# params

View: New views
1 Messages — Rating Filter:   Alert me  

passing arguments to c# params

by Simon Segal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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 method with a single IEvent and with an array eg.

 

methodname(msg, msg)

 

Publish() takes at least 2147483647 arguments (2 given)

 

I should also mention that it’s an overloaded method.

 

Thanks,

Simon Segal

Email:

simon.segal@...

Web Site:

http://www.simonsegal.net

 

 


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com