Initialising a nullable C# with Example



Initialising a nullable C# with Example

For null values: 
Nullable i = null; 
Or: 
int? i = null; 
Or: 
var i = (int?)null; 
For non-null values: 
Nullable i = 0; 
Or: 
int? i = 0; 

0 Comment's

Comment Form