Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
actions and tasks
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks;//required for tasks / concurrent programming namespace Rextester { public class Program { public static void Main(string[] args) { //action stuff Action a; a = () => Console.WriteLine("Test"); a += delegate { Console.WriteLine("Test2"); }; a(); //task stuff Task t; t = RunAsync("testing tasks"); t = Task.Factory.StartNew(()=>ShowThreadInfo("abc")); } static void ShowThreadInfo(String s) { Console.WriteLine("{0} Thread ID: {1}", s, Thread.CurrentThread.ManagedThreadId); } private static async Task RunAsync(String s) { await Task.Run(()=>{Console.WriteLine(s);}); } } }
run
|
edit
|
history
|
help
0
Morse code
Reward
Shorten SMS Text
Matrix Pattern
SCZDXA S
recur 4
compiled prog
Remove Duplicates - Asif Ali
abc
SVNParse