fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,38 @@
---
title: Return Statement
---
# Return Statement
The `return` statement terminates execution of a method inside which it appears and returns control to the calling method. It may or may not return a value.
If the `return` statement is inside a `try` block and if there is a `finally` block, then the control is passed to the `finally` block, after which it is returned to the calling method.
## Example
```
class Calc
{
static int Sum(int i, int j)
{
return i + j;
}
static void Main()
{
int a = 4;
int b = 3;
int sum = Sum(a, b);
Console.WriteLine($"The sum of {a} and {b} is {result}");
// To keep the console from closing
Console.ReadLine();
}
}
```
## Output:
```
> The sum of 4 and 3 is 7
``