R
RP
I have a member variable of a class of type "int", and while assigning
value to it in a constructor, I want to check whether it is a null. I
am using following code:
if (NewMember.BPLNo == null)
NewMember.BPLNo = 0;
But, Visual Studio 2005 is giving warning that variables with type
'int' cannot be 'null'. How to check this?
I also want to know is there any functions like IsNumeric, IsString
etc. in C#.
value to it in a constructor, I want to check whether it is a null. I
am using following code:
if (NewMember.BPLNo == null)
NewMember.BPLNo = 0;
But, Visual Studio 2005 is giving warning that variables with type
'int' cannot be 'null'. How to check this?
I also want to know is there any functions like IsNumeric, IsString
etc. in C#.