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
sdfgyutresdf
expression evaluator wich is easy to extend
if else y var
Random
Display the pattern like diamond by using c# for loop
Fórum ➡ Rotating a Square Matrix One Cell Counter Clockwise
bubbleSort
Find duplicated values in a list
-Wall -std=c++14 -O0 -o a.out source_file.cpp
property_comparison3