How to call generic method with a given Type object?

Viewed 78145

I want to call my generic method with a given type object.

void Foo(Type t)
{
     MyGenericMethod<t>();
}

obviously doesn't work.

How can I make it work?

3 Answers
Related