Func Example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Func
Func
var richard = Minus;
var jx = OperatreWithFunc(3, 5, Add);
var jx2 = OperatreWithFunc(6, 3,richard);
var jx3 = OperatreWithFunc(3, 53, GetFunc());
}
static int OperatreWithFunc(int x ,int y,Func
{
return fun(x, y);
}
static Func
{
return (a, b) => a + b;
}
}
}
0 Comments:
Post a Comment
<< Home