Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Anonoymus method using 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; namespace Rextester { public class Program { //delegate declaration delegate int del(int x,int y); public static void Main(string[] args) { //anonoymus method using delegate keyword del d = delegate(int x, int y) { return x*y; }; int result = d(4,3); Console.WriteLine(result); } } }
run
|
edit
|
history
|
help
0
Interface referance variable
SquareRealMatrixWithMathJax
Math 10.95 fracOp (mult div only)
name generator
DataTables Left Join
error2
dfdfdff
Hello World!
dgh ret ertfh fhf hft85487
Anq Calc