I have a local variable List or some other List I want to get the generic class of this list variable.
The variable is NOT member variable, so do NOT use Field to get the generic class.
The method should be
public Class getGenericClass(List list){
//somehow to return Class E
}
Aucun commentaire:
Enregistrer un commentaire