C# error: not all code paths return a value

前端 未结 6 900
情深已故
情深已故 2020-12-10 23:27

I have declared a method in another class and it has an error \"not all code paths return a value\"

I would like it to return a true or false value to the main progr

6条回答
  •  眼角桃花
    2020-12-11 00:24

    put this at the end of method

    return isIdentical;

    u are not returning any value. This may work

提交回复
热议问题