lundi 25 septembre 2017

Reflection how to extract an Object code (var) name

A method, from group of some reflection methods set, receives oa object O.

For example:

string GetOName(object O){ }

The O is in fact List<string>

In this code O has the variable Name MyList;

Question: how to extract the O real var name (MyList)?

Thanks





Aucun commentaire:

Enregistrer un commentaire