if (5 + 5 + 5 >= 500)的有趣之处

            if (5 + 5 + 5 >= 500)
            {
                
            }
            else
            {
                return shell;

            }

 

这样可否编译通过呢? 

可以

因为 5 + 5 + 5 >= 500直接被编译为

protected override DependencyObject CreateShell()
{
    Shell shell;
    DependencyObject CS$1$0000;
    bool CS$4$0001;
    shell = new Shell();
    shell.Show();
    CS$4$0001 = 1;
Label_0012:
    CS$1$0000 = shell;
Label_0017:
    return CS$1$0000;
}


posted on 2009-06-07 22:59  imbob  阅读(225)  评论(1)    收藏  举报

导航