M
Mike P
What are nullable types used for? The only use I can think of is where
I have a method like this where some values being passed to it may be
null :
public int AddUser(int? UserRegion, string UserName etc)
You might have an Add User page where some of the fields do not have a
value entered by the user, so you can account for this by making these
types nullable in the method above. Is this the right usage of nullable
types? And what are the other uses?
I have a method like this where some values being passed to it may be
null :
public int AddUser(int? UserRegion, string UserName etc)
You might have an Add User page where some of the fields do not have a
value entered by the user, so you can account for this by making these
types nullable in the method above. Is this the right usage of nullable
types? And what are the other uses?