How to indicate that a method was unsuccessful

前端 未结 16 1515
走了就别回头了
走了就别回头了 2020-12-31 08:03

I have several similar methods, say eg. CalculatePoint(...) and CalculateListOfPoints(...). Occasionally, they may not succeed, and need to indicate this to the caller. For

16条回答
  •  独厮守ぢ
    2020-12-31 08:19

    Sorry, I just remembered the Nullable type, you should look at that. I am not too sure what the overhead is though.

提交回复
热议问题