   [.net] Invoke a generic method?
  Hello!I'm hoping someone can help me out with this.I want to invoke a static generic function, whith a specified type.like:void SomeFunction<Generic>() {...}MethodInfo method = type.GetMethod("SomeFunction", ...);method.Invoke();I can't find any documentations on how to Invoke it with a Generic "parameter"?I want something like this:MethodInfo method = type.GetMethod("SomeFunction", typeof(MyGenericParameterType), ...);method.Invoke();Would appreciate any help on this :)   
  I just solved it :)you can do it like this:MethodInfo method = type.GetMethod("SomeFunction");MethodInfo genericMethod = method.BindGenericParameters(new Type[] { typeof(MyGenericType) });genericMethod.Invoke(null, null);   