Answers for "pass list by ref c#"

C#
0

pass list by ref c#

public void func(ref List<int> list) {...}

List<int> intList = new List<int> { 1, 2, 3 };
func(ref intList);
Posted by: Guest on February-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language