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) { string str; Action a; Task t; a = () => Console.WriteLine("Test"); a += delegate { Console.WriteLine("Test2"); }; str = "testingasync"; t = RunAsync(str); t = Task.Factory.StartNew(()=>ShowThreadInfo("abc")); a(); } 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
line 1 syntax error
123
bbbbbb
Boyer Moore String Search
ADSA - Tuto 1 - Exo4 - b - Proposition d'algo en O(n)
asxsadxsdf
mine
IsDivisibleV2
k
Linked list solution with remove