Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
function in event
//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; namespace Rextester { public class SomeClass { public Func<bool> UpdateCanExecute = () => { Console.WriteLine("0"); return true; }; public bool DoIt() { return UpdateCanExecute.Invoke(); } } public class Program { public static void Main(string[] args) { var s = new SomeClass(); s.UpdateCanExecute += () => { Console.WriteLine("1"); return false; }; s.UpdateCanExecute += () => { Console.WriteLine("2"); return true; }; Console.WriteLine(s.DoIt()); Console.WriteLine("Done..."); } } }
run
|
edit
|
history
|
help
0
Swap 2
Big numbers
www
Custom Date Format
fnaf
.heap sort
Nuts
hello-shared
Hallo world
10857