美文网首页
Return multiple values

Return multiple values

作者: 津涵 | 来源:发表于2019-02-02 13:23 被阅读0次

    return multiple values with different types

    (1)One option is to declare a class and struct and define all the information that should be returned as members of this type.
    (2)Another option is to use a tuple type.
    (3) The third option is to use the out keyword.

    相关文章

      网友评论

          本文标题:Return multiple values

          本文链接:https://www.haomeiwen.com/subject/rydssqtx.html