U N D E R S TA N D I N G S T R U C T U R E D E X C E P T I O N H A N D L I N G
Next, we need to update the catch logic to test that the value returned
from the Data property is
not null (the default value). After this point, we make use of the Key and Value properties of the Dic-
tionaryEntry type to print the custom data to the console:
catch (Exception e)
{
...
Do'stlaringiz bilan baham: