I'm starting to explore how to use threading in my applications now, and i can successfully create/execute basic threads in C#. eg this:
That code works fine, the method 'threaded_run_check' executes in its own thread and then i have more thread handling code later on to find out when its finished etc.Code:ThreadStart thrStartUpdate = new ThreadStart (threaded_run_check); Thread fThread = new Thread (thrStartUpdate); fThread.Name = "thrDocbaseUpdate"; fThread.Start();
My question is - is it possible to call a method that is NOT void (ie has a return type) and/or can take parameters? Obviously not by 'standard' methods (ie not the same as what you would do with a normal method), but maybe through some threading methods? I have searched the net for an example or something saying one way or the other, but I can;t find anything
Any help would be appreciated,