回答編集履歴

1

nullable

2019/01/28 10:22

投稿

runny_nose
runny_nose

スコア280

test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  // 実装3
36
36
 
37
- httpStatusCode = ex.GetType().GetProperty("ErrorCode", typeof(HttpStatusCode))?.GetValue(ex) as HttpStatusCode;
37
+ httpStatusCode = ex.GetType().GetProperty("ErrorCode", typeof(HttpStatusCode))?.GetValue(ex) as HttpStatusCode?;
38
38
 
39
39
 
40
40