zoukankan      html  css  js  c++  java
  • 你知道这段代码的输出吗?

    在msdn 上看到的文章 Quick Puzzle: what does this program print?

    你知道这段代码的输出吗?

        class Hello
    
        {
    
            Type Unknown { get { return World.GetType(); } }
    
            object[] Knowledge() { return Unknown.GetProperties(); }
    
            string[] Library()
    
            {
    
                return Array.ConvertAll<object, string>(
    
                    Knowledge(),
    
                    delegate(object x) { return x.ToString(); });
    
            }
    
            public static Hello World { get { return new Hello(); } }
    
            public static void Main(string[] args)
    
            {
    
                if (args.Length > 0)
    
                    Console.WriteLine(args[0]);
    
                else
    
                    Main(World.Library());
    
            }
    
        }
    

    答案



  • 相关阅读:
    Java中-classpath和路径的使用
    总是分不清
    Maven Web项目部署到Tomcat下问题
    一、数据设计规范
    一、入职学习
    一、服务器控件
    WebApiThrottle限流框架
    一、接口的规则
    一、免费API调用
    十、锁
  • 原文地址:https://www.cnblogs.com/LoveJenny/p/2218425.html
Copyright © 2011-2022 走看看