If a method does not return any value, you should use the return type: | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
0
public void yourMethod(){ Console.WriteLine("It doesn't return anything"); } Use void :)
30th Aug 2018, 8:35 AM
Sam Pache
Sam Pache - avatar