C# enables you to initialize fields in place. This means that you can tell the compiler to automatically set a field to a certain value whenever someone creates an instance of the class. By default, the .NET Framework sets uninitialized fields to zero if they are numeric, false if they are Boolean, or null if they are reference types (like string or any variable of class you declare). To add field initializers:
Tip
|