Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WindowHeight = 40;

            serverTool.wmi2 wmi = new serverTool.wmi2();
            foreach (MethodInfo objMethod in wmi.GetType().GetMethods())
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine(objMethod.Name);
                foreach (ParameterInfo objParameter in objMethod.GetParameters())
                {
                    Console.ForegroundColor = ConsoleColor.Cyan;
                    Console.WriteLine("   " + objParameter.Name);
                }
            }
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WindowHeight = 40;

            serverTool.wmi2 wmi = new serverTool.wmi2();
            foreach (MethodInfo objMethod in wmi.GetType().GetMethods())
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine(objMethod.Name);
                foreach (ParameterInfo objParameter in objMethod.GetParameters())
                {
                    Console.ForegroundColor = ConsoleColor.Cyan;
                    Console.WriteLine("   " + objParameter.Name);
                }
            }
            Console.ReadKey();
        }