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
The abstract factory design pattern implemented in c# using generics.
Regex fórum 01
Plt-D v.0.9.6 (Speed Vector)
line 1 syntax error
Compression Decompressor
SunLocation
Some Fibonacci
enums with extension method: better
Preprocessor
ConvertDataTableToHTML