var modefier = new ParameterModifier(2);
modefier[0] = false;
modefier[1] = true;
MethodInfo mi1 =
typeof(Double).GetMethod("TryParse", new Type[]{typeof(string), typeof(Double)}, new ParameterModifier[]{modefier});
MethodInfo mi1 = typeof(Double).GetMethod("TryParse",
BindingFlags.Static | BindingFlags.Public,
null,
new Type[] { typeof(string), typeof(Double).MakeByRefType() },
null);
MethodInfo TryParseDouble = typeof(double).GetMethod("TryParse",
BindingFlags.Public | BindingFlags.Static,
null,
CallingConventions.Any,
new[] { typeof(string), typeof(double).MakeByRefType() },
null);
object[] parameters = {"1818,1818", 0.0 };
double rezult;
if ((bool)TryParseDouble.Invoke(null, parameters))
{
rezult = (double)parameters[1];
}