比如我有
private void test(Action<ValueTuple<string, int>> fn)
{
fn(("hello", 10));
}
test(t =>
{
var (s, i) = t;
Console.WriteLine(s);
Console.WriteLine(i);
});
Run Code Online (Sandbox Code Playgroud)
我想写这样的东西
private void test(Action<ValueTuple<string, int>> fn)
{
fn(("hello", 10));
}
test((s,i) =>
{
Console.WriteLine(s);
Console.WriteLine(i);
});
Run Code Online (Sandbox Code Playgroud)
这有可能用一些正确的表示法吗?