I new to c# and I am trying to create a method which takes a string and then it instantiates an object using the string as a type.
public void CreateRepository( string name) {
var repository = new Repository<name>();
}
e.g.
enter code here
Obviously I get a compiler error but how do I convert my string to a namespace?