Welcome back at our first serial of step2 series of articles. This topic today will focus on how to return more than one value from our C# function. Also we will see the difference between ref and out keywords.
As we know, Function returns only one value. If we wanted to return more than one value, can we do so?
We can do so by 3 ways:
1- Ref keyword.
2- Out keyword.
3- Using Struct.
Lets see together our example.
I hope you find this first article at out step2 series to be useful.
See you soon inshaallah