P
Paul Tomlinson
Question about a System.Threading.Timer object and the "state" object you
pass to it...
Timer stateTimer = new Timer( = new TimerCallback( OnTimer ), o, 1000,
1000);
I have an array of timer objects which all fire into my OnTimer( object
state ) function very nicely. I pass in an object "o" on creation of this
timer which I subsequently get passed to me in my OnTimer function. Now in
the OnTimer function I want to modify the object "o" which I get passed back
and then have the modified version passed to me when every subsequent
interval fires.
Is this possible?
pass to it...
Timer stateTimer = new Timer( = new TimerCallback( OnTimer ), o, 1000,
1000);
I have an array of timer objects which all fire into my OnTimer( object
state ) function very nicely. I pass in an object "o" on creation of this
timer which I subsequently get passed to me in my OnTimer function. Now in
the OnTimer function I want to modify the object "o" which I get passed back
and then have the modified version passed to me when every subsequent
interval fires.
Is this possible?