Return multiple values

2019-02-02  本文已影响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.

上一篇下一篇

猜你喜欢

热点阅读