首页  »   C#

步骤的返回值

网友分享于:2014-01-07  浏览:10次
方法的返回值
public bool asd()
        {
            int count = 0;
            for (int i = 1; i < 9;i++ )
            {
                if (true)
                {
                    if (count == 0)
                    {
                        if (true)
                        {
                            return true;
                        }
                        else
                        {
                            return true;
                        }
                    }

                }
                else
                {
                    if (i > 3)
                    {
                        if (true)
                        {
                            i = 2;
                        }
                        else
                        {
                            return true;
                        }
                    }
                    else
                    {
                        if (true)
                        { }
                        else
                        {
                            return false;
                        }
                    }
                }
            }
        }



求教 怎么会并非所有的代码路径都有返回值?
上一页1/4下一页

相关解决方案

最新解决方案