C# error: Use of unassigned local variable

前端 未结 4 1990
庸人自扰
庸人自扰 2020-12-03 16:43

I\'m not sure why I\'m getting this error, but shouldn\'t this code compile, since I\'m already checking to see if queue is getting initialized?

public stat         


        
4条回答
  •  情书的邮戳
    2020-12-03 17:19

    The compiler doesn't know that Environment.Exit() does not return. Why not just "return" from Main()?

提交回复
热议问题