Wednesday, December 31, 2008

Default values for C# data types

bool: False
byte: 0
char:
decimal: 0
double: 0
float: 0
int: 0
long: 0
object:
short: 0
signed byte: 0
string: null
unsigned int: 0
unsigned long: 0
unsigned short: 0
int?: null

No comments: