If a method does not return any value, you should use the return type: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If a method does not return any value, you should use the return type:

If a method does not return any value, you should use the return type:

30th Aug 2018, 6:31 AM
Nwenar Ismael Abbas
Nwenar  Ismael Abbas - avatar
1 Answer
0
public void yourMethod(){ Console.WriteLine("It doesn't return anything"); } Use void :)
30th Aug 2018, 8:35 AM
Sam Pache
Sam Pache - avatar