Ogólna lista za pomocą refleksji
Mam scenariusz, na którym mamClass name as a string
Chcę tylko stworzyć rodzajowyList
tej klasy. Próbowałem następujących rzeczy
Type _type = Type.GetType(className);
List<_type> list = new List<_type>();
Ale rozumiemerror
. Nie mogę podać tego _type jako argumentu listy. Jeśli ktoś wie, pomóż mi