0
Reason for value cannot be null in c#
I'm running application successfully some time before unfortunately I'm getting error in my program.cs shows value cannot null
5 odpowiedzi
+ 6
Because, well, the value cannot be null.
Can't tell much without your code. Post it, maybe?
+ 2
most variable types cannot by default hold a null value. if you need them to, you can add a question mark at the end of the type definition like so:
int? a = null;
+ 1
0
shall I share my code here
0
have you seen this