using System.Collections.Generic;
public static void Main()
for (int i = 0; i <= 2; i++)
Foo(ref List<string> temps);
Console.WriteLine("add");
Console.WriteLine("null");
private static void Foo (ref List<string> temp)
Random rnd = new Random();
bool flag = 0 == rnd.Next(0, 2) ? true : false;
temp = new List<string>(){"1", "2"};