C# Threading in a method

Posted by user177883 on Stack Overflow See other posts from Stack Overflow or by user177883
Published on 2010-04-03T15:47:05Z Indexed on 2010/04/03 15:53 UTC
Read the original article Hit count: 179

Filed under:
|
|

I have the following method :

public List<string> someMethod()
{

   // populate list of strings
   // dump them to csv file
   //return to output
}

Question is: i dont want the user to wait for csv dump, which might take a while. If i use a thread for csvdump, will it complete? before or after the return of output?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET