I have got the following method
public static void Method1(ref List<int> list)
{//code to update list}
Is it possible to create a method that takes this method as a parameter similar to (but instead of Action< List> it uses Action< ref List>)
public static void Method2(Action<List<int>> otherMethod)
{var newList = new List<int>(); otherMethod(newList)}
My main problem is that my method uses reference while Action> does not take references. Is this possible?