Skip to content Skip to sidebar Skip to footer

Calling C# Object From Ironpython

I have the following C# code to compile it into MyMath.dll assembly. namespace MyMath { public class Arith { public Arith() {} public int Add(int x, int y) {

Solution 1:

You should be doing the following:

fromMyMathimportArith

Or:

fromMyMathimport *

Otherwise, you'll have to refer to the Arith class as MyMath.Arith.

Post a Comment for "Calling C# Object From Ironpython"