0
点赞
收藏
分享

微信扫一扫

追踪微服务脉络:Eureka中实现分布式链路追踪的精妙之道

一叶随风_c94d 2024-07-24 阅读 28
c#

​
namespace _7._16day01
{
    internal class Program
    {
        
​
        
       
        static void Main(string[] args)
        {
            Action<string, int> t2 = (x, y) => { Console.WriteLine(x+y); };
            Action t1 = () => { Console.WriteLine("lamadab"); };
            Func<int ,int ,int > Add = (x, y) => {  return x + y; };
            t1();
            t2("你好",250);
            Console.WriteLine(Add(12, 24));
        }
    }
}
​

在Action里面传入参数变量 action是不需要返回值的

在Func里面也要传入参数变量 但是最后一个是返回值类型

举报

相关推荐

0 条评论