Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Delegate & anonymous method
//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 { delegate void del(int i); delegate int del2(int i); public class Program { public static void Main(string[] args) { myDelegate(6); int a = myDelegate2(4); Console.WriteLine(a); } static del myDelegate = delegate(int i){ Console.WriteLine("{0} * 2 = {1}", i, i*2); }; static del2 myDelegate2 = delegate(int i) { return i*2; }; public static void myMethod(int i) { } } }
run
|
edit
|
history
|
help
0
Prime
dict
Funzpoint
Classes
Intuit // C# // listing_4.6 (Shooting on the target)
Swap 2
Linked Lists
radix sort
fuck this
pointer