what is the difference between:
if(object.mydataitem)
{
//rest of code
}
and
if(object?.mydataitem)
{
//rest of code
}
I just dont know when to use one of them over the other and what exactly is the functionality of the '?'.
what is the difference between:
if(object.mydataitem)
{
//rest of code
}
and
if(object?.mydataitem)
{
//rest of code
}
I just dont know when to use one of them over the other and what exactly is the functionality of the '?'.