表达式调用方法

果然君2 2022/3/13 发布 · 2022/3/13 更新 · 1966 次阅读

 

Func<string, string> lambda1 = arg => {
	return arg;
};


Func<string, string, string> lambda2 = (arg1, arg2) => {
	return arg1 + arg2;
};

return lambda1("arg") + ","  + lambda2("arg1","arg2"); // arg,arg1arg2

 

 

 

· {{comment.createTimeStr}}
{{reply.votePoints}}
回复   – {{reply.createTimeStr}}
回复 x
标签
目录
相关操作