我有一个类,它有以下属性:
public Action<bool> Action { get; private set; }
我有一个构造函数,它以 Action<bool>
为参数。
现在,我想添加另一个构造函数,接受类型为 Action
的对象。如何将 Action
转换为 Action<bool>
?在这种情况下,bool 参数应该为 true。
Action<bool>
转换为一个Action
。(他需要相反的) - Servy