c# - Can't access Exception property -


i catching argumentexception, of want specific property. when put breakpoint on code argumentexception caught, see has errormessage property:

enter image description here

but trying access gives result:

enter image description here

what's going on here?

the problem in first screenshot display httpwebresponse or similar object, while in second screenshot working actual exception.

exceptions have message property , not errormessage. change second code ex.message , work.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -