0
Answer

How to overload postincrement operator in C#

Suneel Kumar

Suneel Kumar

18y
3.1k
1

class test{

public int i;

public static test operator ++(test i){

t.i++;

return t;
}

}
This is how i implemented pre increament. How to do this fro post increment.

Next Recommended Forum