I'm retrieving a list of methods from a class
foreach (MethodInfo item in typeof(RptInfo).GetMethods())
{
if (item.ReturnType.Equals(typeof(DataTable)))
{
lstMethods.Items.Add((item.Name));
}
}
Clearly adding the method names to a list control.
I'm having problem, I guess more correctly, not understanding, the proper use of 'Action or 'Func' in order to call the selected method name and getting it's return value into a dataview control.
I did reference: How to call a Method from String using c#?
but still not certain as to a correct implementation method. Still new to implementing these concepts