C# - Error “not all code paths return a value” with an array as out parameter

后端 未结 6 1425
走了就别回头了
走了就别回头了 2021-01-24 05:49

I currently have the below code:

public int GetSeatInfoString(DisplayOptions choice, out string[] strSeatInfoStrings)

    {
        strSe         


        
6条回答
  •  灰色年华
    2021-01-24 06:01

    You need to return an integer value according to your methods signature.

    After the for loop is where a value should be returned.

提交回复
热议问题