J
js
I need to test if an integer variable is null or not. I tried to do
int myVairable;
myVariable = Int32.Parse(txtControl1.Text.Trim());
if (myVariable != null) {// do something}
C# does not allow this statement. How do I test an integer to see if it
is null or not? Thanks.
int myVairable;
myVariable = Int32.Parse(txtControl1.Text.Trim());
if (myVariable != null) {// do something}
C# does not allow this statement. How do I test an integer to see if it
is null or not? Thanks.