Is the following at all possible in c#?
I have the following but the last line won't compile, am i missing something?
public static void BuildGeneric<T>(List<T> l)
{
l = new List<T>();
var anything = new object();
l.Add(anything);
}
"The best overloaded method match for 'System.Collections.Generic.List.Add(T)' has some invalid arguments"