mercredi 22 avril 2020

Pass dynamic Type to Generic List

Basically I want to pass Type which is calculated on run time to List< T>:

Type someType = GetSomeType()
List<someType> myList = new List<someType>();

Is that possible?





Aucun commentaire:

Enregistrer un commentaire