Re: How to define a c# class to support IronPython power operator **
Hailiang Shen
Thanks for the speedy response. This sample works very well.
Hailiang
From: users@ironpython.groups.io <users@ironpython.groups.io>
On Behalf Of Stéphane Lozier
Sent: July 5, 2019 5:23 PM To: users@ironpython.groups.io Subject: Re: [ironpython] How to define a c# class to support IronPython power operator **
There are a bunch of variations (e.g. using the name "__pow__", using the name "Power", static methods, instance methods), but here is one example:
public class MyClass {
Stéphane
On Fri, Jul 5, 2019 at 4:43 PM Hailiang Shen <hailiang@...> wrote:
|
|