Can you return multiple values from a function in C#?

Technology CommunityCategory: C#Can you return multiple values from a function in C#?
VietMX Staff asked 4 years ago

Yes! Using output parameters. A return statement can be used for returning only one value from a function. However, using output parameters, you can return two values from a function.