I have a series of generic methods that accept a type to run. For instance:
db.CreateTable<MyClassName>();
I want to be able to create a list of classes and then iterate over the list like:
foreach(var class in classList)
{
db.CreateTable<class>();
db.CheckStatus<class>();
// ... etc
}
VS says the parameter is a method group
. I googled this and docs say this is a delegate. How do i create a list of delegates pointing to my classes that I can then iterate over and use as reference in call to generic method?