samedi 19 juin 2021

Is there any way to use type variables with generic methods? [duplicate]

I found some information about instatiating generic classes using dynamic types, but what about methods?

How would I go about doing something like this:

var type = typeof(Foo);
someObject.Bar<Type>();




Aucun commentaire:

Enregistrer un commentaire