Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ThreadStart threadStart = controller.OpenFile;
- Thread thread = new Thread(threadStart);
- thread.Start();
- System.Console.Error.WriteLine("Launching");
- using System;
- using System.Threading;
- namespace Net_Threading_Problem
- {
- class Program
- {
- static void Main()
- {
- Controller controller = new Controller();
- ThreadStart threadStart = controller.OpenFile;
- Thread thread = new Thread(threadStart);
- thread.Start();
- thread.Join();
- }
- }
- internal class Controller
- {
- public void OpenFile()
- {
- Console.Error.WriteLine("Launching");
- }
- }
- }
Add Comment
Please, Sign In to add comment