[Solved] How to get the name of List [closed]
[ad_1] If what you mean is the name of the variable that was used when the list was passed to the method like this: static List<string> GatherDataPerProduct(List<Pandora.Data.DomainObject> lstdata) { if(lstData.value == “subjects”) { //do whatever } List<DomainObject> subjects; GatherDataPerProduct(subjects); then what you’re trying to do is not possible. The reason is that upon compilation, the … Read more