class Program {
static void Main() {
test b=new(2), n = new(5);
test bh = b + n;
}
}
class test {
public test(int h) {
i = h;
}
public int i { get; }
public static test operator+(test i, test j) {
return new test(i.i + j.i);
}
}
How are operator methods static if they operate on instances? I mean I say b+n which clearly are instances.