Software engineer. Been developing C/C++/C# embedded and Windows software for more than 15 years.
Currently working with .Net 4.6 Windows applications in C# 6.0
Get notified when a new post is published.
According to: https://msdn.microsoft.com/da-dk/library/83fhsxwc.aspx
the default values of C# Value Types, are as followes:
Value type
Default value
bool
false
byte
0
char
'\0'
decimal
0.0M
double
0.0D
enum
The value produced by the expression (E)0, where E is the enum identifier.
float
0.0F
int
long
0L
sbyte
short
struct
The value produced by setting all value-type fields to their default values and all reference-type fields to null.
uint
ulong
ushort
As always, feel free to comment, or ask.