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.
- Host: GitHub
- URL: https://github.com/msaifulcsse/return-two-or-more-values-from-c-sharp-method
- Owner: msaifulcsse
- Created: 2018-08-09T17:32:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-10T04:16:10.000Z (almost 8 years ago)
- Last Synced: 2025-06-16T09:14:01.732Z (about 1 year ago)
- Language: C#
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.