Continuing on the series of C# and/or .NET Framework short questions:
private void Foo(List<int> bar) {
bar = new List<int>();
// ...
}
With the method above and the code below:
List<int> bar = null;If or else ?
Foo(bar);
if (bar != null) {
Console.WriteLine("populated");
} else {
Console.WriteLine("still null");
}
EDIT: fixed typo in code sample.