if (dataprovider[i].someValue == null){
...
}

--- In [email protected], "napearson99" <[EMAIL PROTECTED]> wrote:
>
> I often get this error and I "usually" know why.  Does anyone know how
> to check for a null reference?
> 
> i.e.
> 
> if (dataprovider[i].someValue is null){
>  dothis();
> }
> 
> Where dataprovider[i] does not have a someValue property.  I bet this
> is pretty simple and I just don't know the syntax.  Thanks in advance!
>


Reply via email to