4
Reply

hi i want with string name of method get a lsit of type

Bahar N.V1984

Bahar N.V1984

Nov 8 2015 6:29 AM
379
hi
i want with string name of method get a lsit of type
MethodInfo methodInfo = myType.GetMethod("GetAll");
var returnValue = methodInfo.Invoke(obj, null);
method "GetAll" return a IEnumerable
but i want get this IEnumerable and save in List?

Answers (4)