In few of our previous lessons, we used functions – methods that not only can be called, perform some action, but also return a value to the caller – the piece of code that called them. You can imagine this as placing the returned value in the place where the function was invoked from.… Read more
Posts Tagged ‘C# keywords’
Return operator
Tuesday, April 18th, 2017Var keyword
Thursday, December 29th, 2016In the previous lessons, I’ve said that when declaring a variable, we are required to indicate the compiler the type of the variable and its name. These kind of variables are called explicitly typed variables:
1 |
int integerVariable = 123; // explicitly typed variable |
However, this is not entirely true.… Read more
C# keywords
Monday, December 26th, 2016C# programming language defines a few keywords that have a special meaning for the compiler. When you chose your variables, classes, methods names, you must be careful to avoid using these C# keywords, or you will get compiler errors, and your program will not compile.… Read more