lundi 4 juillet 2022

C# is it possible to construct new object from type variable? [duplicate]

Lets say I have a Type variable. Is there a way to call the default empty constructor from the variable and return a new object of said type? If such a thing exists, is there a way to call a non-default constructor in this way?





Aucun commentaire:

Enregistrer un commentaire