コード例 #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();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: rogerlio/csharp-proj
        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();
        }