jeudi 25 mai 2017

How can we define a Genereic List just giving the textual class name?

I would like to know how to define a generic list just giving the textual class name and using System.Type as shown in the example below :

Type entity_type = Type.GetType("Entities.Human, Entities");

List<entity_type> a = new List<entity_type>();





Aucun commentaire:

Enregistrer un commentaire