[IronPython] Keyword Arguments For C# Functions
D.Moor at sim-soft.co.uk
Wed Nov 26 09:38:25 CET 2008
I am developing a C# application using VS2005 and IronPython v1.1.0
(currently). I am trying to add a function to a C# class that will be
callable from IronPython which will take a keyword argument list mimicking:
def fred(self, name, **kwargs):
I found this link
but I don't have Microsoft.Scripting available.
However IronPython allows kwargs on contructors of standard clr classes like
System.Windows.Forms.TextBox etc., can I use the same magic as that?
I looked in the source of v1.1.2, do I need to do 'something' with
IronPython.Runtime.Calls.KwArgBinder and if so what? Is there a sample
somewhere I've missed? Or is it covered in IronPython in Action, if so I
guess I'd better stick my hand in my pocket :)
Thanks in advance
Mill House, Hawksworth Road, Horsforth, Leeds, LS18 4JP England.
Reg No. 1311728 Eng.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users