Bahar N.V1984

Bahar N.V1984

  • NA
  • 18
  • 1.4k

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

Nov 8 2015 6:29 AM
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)