0
Reply

How to overload postincrement operator in C#

Suneel Kumar

Suneel Kumar

Aug 17 2006 8:35 AM
2.7k

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.