Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
FuncDelegate
//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; using System.Globalization; using System.Threading; namespace Rextester { public class Program { public static void Main(string[] args) { Func<int,int> addOne = n => n+1; Func<int,int,int> addNums = (x,y) => x+y; Func<int,bool> isZero = n => n == 0; Console.WriteLine(addOne(5)); Console.WriteLine(isZero(addNums(-5,5))); int [] a = {0,1,0,3,4,0}; Console.WriteLine(a.Count(isZero)); } } }
run
|
edit
|
history
|
help
0
a6
never use floats for money
random no generation array
biswa
C# enum flag comparison with bitwise operators
array reverse
c# abstract
conditional Debug
GeneGenerator
test