In c# types are divided ino 2 broad categories Value types- int,float,double,structs,enums etc Reference types=interface Class delegates arrays etc By default value types are no nullable .To make them nullable use? Int=0( I is non nullable so I cannot be set to null i=null will generate compiler error Int ? j=o(j is of nullable int so j=null is leagal
In c# types are divided ino 2 broad categories
Value types- int,float,double,structs,enums etc
Reference types=interface Class delegates arrays etc
By default value types are no nullable .To make them nullable use?
Int=0( I is non nullable so I cannot be set to null i=null will generate compiler error
Int ? j=o(j is of nullable int so j=null is leagal