Return multiple values to a method caller

前端 未结 26 2361
故里飘歌
故里飘歌 2020-11-21 21:57

I read the C++ version of this question but didn\'t really understand it.

Can someone please explain clearly if it can be done and how?

26条回答
  •  我寻月下人不归
    2020-11-21 22:32

    From this article, you can use three options as posts above said.

    KeyValuePair is quickest way.

    out is at the second.

    Tuple is the slowest.

    Anyway, this is depend on what is the best for your scenario.

提交回复
热议问题