Possible Duplicate:
How do you add a timer to a C# console application
i have a console application. Now to the timer function I want to pass a streamwriter o开发者_运维百科bject so that i can write a certain set of data after elapse of say like 10 seconds. How do i do it??
You don't pass the streamwriter in, use a member variable.
精彩评论