Check out example codes for "what are methods in c#". It will help you in understanding the concepts better.

Code Example 1

//A method is a code block that contains a series of statements.
//A program causes the statements to be executed by calling the method
//and specifying any required method arguments. In C#,
//every executed instruction is performed in the context of a method.

Learn ReactJs, React Native from akashmittal.com