Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Delegate In C#
//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; delegate void Procedure(); namespace Rextester { public class Program { public static void Method1() { Console.WriteLine("Method 1"); } public static void Method2() { Console.WriteLine("Method 2"); } public void Method3() { Console.WriteLine("Method 3"); } public static void Main(String[] args) { Procedure someProcs = null; someProcs += new Procedure(Program.Method1); someProcs += new Procedure(Method2); // Example with omitted class name Program demo = new Program(); someProcs += new Procedure(demo.Method3); someProcs(); } } }
run
|
edit
|
history
|
help
0
pyramidalt
UF pc
Collection Basic
Linq join to tables
ssz
Find longest span of characters in string
sdfsdfs
Crystals Plep
Reference vs Value types (aka Classes vs Structs) in C#
generic hierarchy1