Hello,
Im reasonably new to C#. Im catching an exception of type WebException as
below:
catch (WebException ex)
{
link.LinkState = (short)(LinkState.Stored);
Debug.WriteLine(ex.Message);
}
The first line in this catch block is hit and executes but the second is
just lpain ignored. When i opened the immediate window and tried a
?ex.Message
i get
?ex.Message
The name 'ex' does not exist in the current context
when i then pull up locals view and i see that the exception var has been
renamed to - $exception?
I dont understand whats going on here. Does this mean i cant log the
exception? I guess not if i cant even access it.
Thanks
Richard