Page 14 - CSharp/C#
P. 14
Chapter 38: Conditional Statements 211
Examples 211
If-Else Statement 211
If-Else If-Else Statement 211
Switch statements 212
If statement conditions are standard boolean expressions and values 213
Chapter 39: Constructors and Finalizers 215
Introduction 215
Remarks 215
Examples 215
Default Constructor 215
Calling a constructor from another constructor 216
Static constructor 217
Calling the base class constructor 218
Finalizers on derived classes 219
Singleton constructor pattern 219
Forcing a static constructor to be called 220
Calling virtual methods in constructor 220
Generic Static Constructors 221
Exceptions in static constructors 221
Constructor and Property Initialization 222
Chapter 40: Creating a Console Application using a Plain-Text Editor and the C# Compiler ( 225
Examples 225
Creating a Console application using a Plain-Text Editor and the C# Compiler 225
Saving the Code 225
Compiling the Source Code 225
Chapter 41: Creating Own MessageBox in Windows Form Application 227
Introduction 227
Syntax 227
Examples 227
Creating Own MessageBox Control. 227
How to use own created MessageBox control in another Windows Form application. 229

