Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] PnP APIs TryGetValue should not throw expected exceptions #2066

Closed
rido-min opened this issue Jul 7, 2021 · 1 comment
Closed
Assignees
Labels
bug Something isn't working. fix-checked-in Fix checked into main or preview, but not yet released. IoTSDK Tracks all IoT SDK issues across the board

Comments

@rido-min
Copy link
Member

rido-min commented Jul 7, 2021

The Try.. pattern in .NET, like int.TryParse, is intended to do not throw exceptions.

from the docs:

The TryParse method is like the Parse method, except the TryParse method does not throw an exception if the conversion fails. It eliminates the need to use exception handling to test for a FormatException in the event that s is invalid and cannot be successfully parsed.

reproes with #2065

@rido-min rido-min added the bug Something isn't working. label Jul 7, 2021
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Jul 7, 2021
@jamdavi jamdavi self-assigned this Jul 12, 2021
@abhipsaMisra abhipsaMisra assigned abhipsaMisra and unassigned jamdavi Jul 16, 2021
@abhipsaMisra abhipsaMisra added the fix-checked-in Fix checked into main or preview, but not yet released. label Jul 20, 2021
@abhipsaMisra
Copy link
Member

This bug has been fixed and released in https://github.com/Azure/azure-iot-sdk-csharp/releases/tag/preview_2021-10-8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. fix-checked-in Fix checked into main or preview, but not yet released. IoTSDK Tracks all IoT SDK issues across the board
Projects
None yet
Development

No branches or pull requests

3 participants