Answers for "c# pass list as reference"

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

Code answers related to "c# pass list as reference"

C# Answers by Framework

Browse Popular Code Answers by Language