Whatever I said about lambda before is crap. Each time time I use it I feel happy.
I had to fire a timer every so often this is what I can use with lambda...
dataStoreTimer = new Timer(new TimerCallback(
(obj) => { (obj as AutoResetEvent).Set(); }), pollEvent, 100, 1000);
Sweet!!!
**BTW you can't blame me for having my shortest post just after the longest!!
No comments:
Post a Comment