Thursday, August 9, 2018

Default values table in c# for

The following table shows the default values of value types returned by the default constructors. 



Value typeDefault value
boolfalse
byte0
char'\0'
decimal0M
double0.0D
enumThe value produced by the expression (E)0, where E is the enum identifier.
float0.0F
int0
long0L
sbyte0
short0
structThe value produced by setting all value-type fields to their default values and all reference-type fields to null.
uint0
ulong0
ushort0


Thank you 

No comments:

Post a Comment