I want to call Math.Round() and I've tried the following but it give me error
Math.Round()
string mathFunc = "Round"; MethodInfo method = Math.GetType().GetMethod(mathFunc); // error Console.WriteLine(method.Invoke(this, 1.78d));
Aucun commentaire:
Enregistrer un commentaire