C# 不写模型定义一个函数类 (类似匿名函数)

可能有点词不达意,我是这样理解的,如果有不对,请大家指点一二。通过查资料发现这个只有在C# 7.0 中才有的,慎用

 在使用前需要引用 System.ValueTuple


(bool state, string msg) retRep = new ValueTuple<bool, string>(false, "未执行");

retRep.state=false;

retRep.msg=true;

原文地址:https://www.cnblogs.com/LuoEast/p/12893020.html