An open API service indexing awesome lists of open source software.

https://github.com/msaifulcsse/return-two-or-more-values-from-c-sharp-method

How way we can return multiple values from a c# method, represented here all those ways to return two or more values from a function.
https://github.com/msaifulcsse/return-two-or-more-values-from-c-sharp-method

Last synced: 10 months ago
JSON representation

How way we can return multiple values from a c# method, represented here all those ways to return two or more values from a function.

Awesome Lists containing this project

README

          

# Return two or more values from a C# method #
How way we can return multiple values from a c# method, represented here all those ways to return two or more values from a function.

## There are several ways available to returns multiple values from a method ##
all those ways are give below,

1. Use of **out** keyword.
2. Use of **ref** keyword.
3. Use of **structures**.
4. Use of **classes**.
5. By **passing a object** of a class as an argument.
6. Using **KeyValuePair**
7. Using **Tuple**

However let's discussed through coding, code with all possible ways are commited this directory. Thanks for being with coding.