You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var body = await request.Content?.ReadAsStringAsync();
throw an nullreferenceexception when when request.Content is null instead of just returning null.
Is this an intended behaviour?
The text was updated successfully, but these errors were encountered:
Misterhex
changed the title
c# 6 await request.Content?.ReadAsStringAsync() doesn't work
c# 6 null-conditional operator doesn't work for await statement
Dec 17, 2015
var body = await request.Content?.ReadAsStringAsync();
throw an
nullreferenceexception
when when request.Content is null instead of just returning null.Is this an intended behaviour?
The text was updated successfully, but these errors were encountered: