In Perl (and other languages) a conditional ternary operator can be expressed like this:
my $foo = $bar == $buz ? $cat : $dog;
Is there a similar operator in VB.NET?
Possible Duplicate:
Is there a conditional ternary operator in VB.NET?
Can we use the Coalesce operator(??) and conditional ternary operator(:) in VB.NET as in C#?
I have some code and when it executes, it throws a NullReferenceException, saying:
Object reference not set to an instance of an object.
What does this mean, and what can I do to fix this error?