fork download
  1. using System;
  2. using System.Reflection;
  3.  
  4. public class Test
  5. {
  6. public static class Met1
  7. {
  8. public static void _Validate(string gp)
  9. {
  10. Console.WriteLine(gp);
  11. }
  12. }
  13. }
  14.  
  15. public class Program
  16. {
  17. public static void Main()
  18. {
  19. MethodInfo method = typeof(Test.Met1).GetMethod("_Validate");
  20. method.Invoke(null, new object[] { "Hello world " });
  21. }
  22. }
Success #stdin #stdout 0.03s 24144KB
stdin
Standard input is empty
stdout
Hello world