Multicast Delegates

Run Settings
LanguageC#
Language Version
Run Command
using System; class MainClass { public delegate void Reporter(int someval); public static void Tester(Reporter p) { p(5); } public void Printer() { Console.WriteLine("Frosty"); } static void Main() { MainClass instance = new MainClass(); instance.Printer(); Reporter p = (int x) => Console.WriteLine("Hello World! " + x); p += (int y) => Console.WriteLine("This is dope! " + y); Tester(p); } }
Editor Settings
Theme
Key bindings
Full width
Lines