static void Main(string[] args) { // string ab = Console.ReadLine(); Console.WriteLine("plz input two int numbers"); int b = Convert.ToInt32(Console.ReadLine()); int a = Convert.ToInt32(Console.ReadLine()); //int a = string ab //int b = string bb; int ret; findmaxfunc aa = new findmaxfunc(); //调用 ret = aa.findmax(a, b); Console.Write("max: {0}", ret); var members = typeof(object).GetMembers(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); foreach (var item in members) { Console.WriteLine($"{item.Name} is a {item.MemberType}"); } Console.ReadLine(); }
static void Main(string[] args) { // string ab = Console.ReadLine(); Console.WriteLine("plz input"); int b = Convert.ToInt32(Console.ReadLine()); int a = Convert.ToInt32(Console.ReadLine()); //int a = string ab //int b = string bb; int ret; findmaxfunc aa = new findmaxfunc(); //调用 ret = aa.findmax(a, b); Console.Write("max: {0}", ret); Console.ReadLine(); }