using System;
using System.Text;
using System.Reflection;

namespace TestMode
{
     class klasa
     {
          private static void Func()
          {
               Console.WriteLine ("To jest prywatna metoda statyczna!");
          }

          private void Funcs()
          {
               Console.WriteLine ("To jest prywatna metoda!");
          }
     }

     public class MainClass
     {
          static void Main ()
          {
               MethodInfo Method = typeof(klasa).GetMethod ("Func",
                                     BindingFlags.NonPublic | BindingFlags.Static);

               Method.Invoke (typeof(klasa), null);

               //Static
               //<-----------------------
               //Object

               klasa ob = new klasa ();

               MethodInfo MethodOB = typeof(klasa).GetMethod ("Funcs",
                    BindingFlags.NonPublic | BindingFlags.Instance);

               MethodOB.Invoke(ob,null);

               Console.ReadKey ();
          }
               
     }
}