Yes, you can. What's the question?
By the way, you are missing a semicolon at the end of the second example:
ThreadStart starter=delegate() { Console.WriteLine("Hello");}
it should be:
ThreadStart starter = delegate { Console.WriteLine("Hello"); };
Although the span that I added is a personal choice.
user153498
source
share