Understanding C#'s "If" Statement
The basis of all C# decision-making capability is the ifstatement, as follows:
if (bool-expression)
{
// Control goes here if the expression is true.
}
// Control passes to this statement whether the expression [more…]
Creating the Source Program for Your First C# Console Application
Visual Studio 2008 includes an Application Wizard that builds template programs and saves you a lot of the dirty work you'd have to do if you did everything from scratch. [more…]
Getting a Handle on Computer Languages, C#, and .NET
Unfortunately, computers don't understand human language, they have their own languages. But programmers can create programs in a "middle ground" language that is not nearly as free as human speech but [more…]
Examining the C# "Else" Statement
Some code must check for mutually exclusive conditions. For example, the following code segment stores the maximum of two numbers, a and b, in the variable [more…]













