Return multiple values

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)