For example I have
private void test(Action> fn)
{
fn((\"hello\", 10));
}
test(t =>
{
var (s, i) = t;
C
public static void CallBackTest( Action<(string Name, int Age)> fn)
{
fn(("MhamzaRajput", 23));
}
public static void Main()
{
CallBackTest((t) =>
{
var ( Name, Age ) = t;
Console.WriteLine(t.Name);
Console.WriteLine(t.Age);
});
}
Output
MhamzaRajput
23