[Solved] What is the VB.Net equavilent of the following


Very similar to the generated code, but there are some changes. I don’t know what the generator was doing with Key, and I don’t think it’s necessary to bracket the Error keyword in this context.

Dim Result = JsonConvert.DeserializeObject(OF T)(parsed("result").ToString(), _
                New JsonSerializerSettings With { .Error = AddressOf HandleDeserializationError} )


Protected Sub HandleDeserializationError(sender As Object, ErrorArgs As EventArgs)
    'The first line in this method didn't do anything
    errorArgs.ErrorContext.Handled = True
End Sub

4

solved What is the VB.Net equavilent of the following