Exception/NULL/Error handling advice.

DeserializeAsync clearly returns a nullable generic object. From the picture we can clearly see that the content being passed is not going to be null. Still, DeserializeAsync says that it's possible to return a null, because, let me know if I understood this incorrectly, it's possible that it won't be possible to Deserialize the content (even if its not null) into the specified object, thus it then would return null. Is the only way to check this, to then wrap response in a nullability check and then return it if I don't want to return a null from the method using this code?
imgz.PNG
Was this page helpful?