Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- namespace MoreMethodExercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- //using lambda expression
- Thread t = new Thread(() => Print("Hello from t!"));
- t.Start();
- Console.ReadLine();
- }
- static void Print(string message)
- {
- Console.WriteLine(message);
- }
- }
- }
Add Comment
Please, Sign In to add comment