Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
functional program
Download a .NET assembly, and execute a static, parameterless method.
Plt-D v.0.9.1
Fortnite Generator
Map usernames from domain\username format to username@domain.com format
q3 .net
learning1
get weekofDay from DateTime in C#
GEFCSADX
DateTime With TimeZone to UTC DateTime
Please log in to post a comment.