Check out example codes for "c# funtion". It will help you in understanding the concepts better.
Code Example 1
public int AddNumbers(int number1, int number2){ int result = number1 + number2; if(result > 10) { return result; } return 0;}
Learn ReactJs, React Native from akashmittal.com