c# passing list element by ref code example
Example: pass list by ref c#
public void func(ref List<int> list) {...}
List<int> intList = new List<int> { 1, 2, 3 };
func(ref intList);
public void func(ref List<int> list) {...}
List<int> intList = new List<int> { 1, 2, 3 };
func(ref intList);