[IronPython] How to call a class written in IronPython in vb.net?

M K Saravanan mksarav at gmail.com
Fri Jul 23 12:19:06 CEST 2010


Hi,

I am a newbie to IronPython.  I wrote a small test class in IronPython
which I want to use in vb.net.

For e.g.

class MksMath(object):
	def __init__(self):
		pass
	def add(a,b):
		return a+b
	def sub(a,b):
		return a-b
	def mul(a,b):
		return a*b
	def div(a,b):
		return a/b

Using SharpDevelop 3.2, I am compiling it as a class library which
produces the following files:

IronPython.dll
IronPython.Modules.dll
IronPython.Modules.xml
IronPython.xml
Microsoft.Dynamic.dll
Microsoft.Scripting.Core.dll
Microsoft.Scripting.Debugging.dll
Microsoft.Scripting.dll
Microsoft.Scripting.ExtensionAttribute.dll
mksmath.dll

Now how do I use this class in vb.net?  Sorry if my question is too basic.

-- mks --



More information about the Ironpython-users mailing list