Passing arguments to C# generic new() of templated type
I’m trying to create a new object of type T via its constructor when adding to the list. I’m getting a compile error: The error message is: ‘T’: cannot provide arguments when creating an instance of a variable But my classes do have a constructor argument! How can I make this work? public static string … Read more