I have a type that I only get to know at a runtime:
Type givenType = FindOutTypeOf(someObject);
and I have following method:
public void SomeMethod(Type type);
that I need to call it with the List<givenType>
type.
How to convert a given type (that I got to know at runtime) to a list of a given type?
Aucun commentaire:
Enregistrer un commentaire