What is the most efficient way to set MethodInfo if it takes parameters and, if so, how many?
My current solutions are: methodInfo.GetParameters().Any() and methodInfo.GetParameters().Count() .
Is this the most effective way?
Since I really don't need any of the ParameterInfo objects, is there a way to do this without calling GetParameters() ?
performance reflection c #
smartcaveman
source share