Check out example codes for "c# shorten an method". It will help you in understanding the concepts better.

Code Example 1

//Full defenition
bool IsEven(int num)
{
  return num % 2 == 0;
}

//Can be rewritten as:
bool isEven(int num) => num % 2 == 0;

//This can only work with one expression methods

Learn ReactJs, React Native from akashmittal.com