1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 7 namespace ConsoleApplication1 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 //if(/* 填写内容,是的输出 hello word */) 14 //if (Console.Write("hello") is object) 15 //if (new Func<bool>(() => { Console.Write("hello"); return false; }).Invoke()) 16 //if (true) Console.Write("hello word");else if(false) 17 //if(Convert.ToBoolean(Type.GetType("System.Console").GetMethod("Write",new Type[]{System.Type.GetType("System.String")}).Invoke(null,new string[]{"hello "}))) 18 if((!((new Thread(()=>Console.Write("hello "))).Start() is object) && Thread.Sleep(100) is object)) 19 { 20 Console.Write("hello"); 21 } 22 else 23 { 24 Console.Write(" word"); 25 } 26 27 Console.Read(); 28 } 29 } 30 }