예제 #1
0
파일: Program.cs 프로젝트: ashwini-iyer/C-
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Example1 e  = new Example1();
            Type     m1 = typeof(Example1);

            foreach (object a in m1.GetCustomAttributes(true))
            {
                Console.WriteLine(a.ToString());
            }
            Example1.Executemain();

            MethodInfo[] n = m1.GetMethods();
            foreach (MemberInfo a in n)
            {
                Console.WriteLine(a.Name + "  " + a.GetType());
            }

            Type m3 = typeof(Ex2);

            MethodInfo[] d1 = m3.GetMethods();
            foreach (MethodInfo nn in d1)
            {
                Console.WriteLine(nn.Name);
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Example1 ex = new Example1();

            ex.ExecuteMain();
            Example1.ExecuteMain1();
            Example2.ExecuteMain();
        }
예제 #3
0
 static void Main()
 {
     Example1.ExecuteMain();
     Example1.ExecuteMain1();
     Example2.ExecutedExample2();
 }