質問編集履歴

2

コードに不備があったため修正

2019/03/30 10:39

投稿

eien_beginner
eien_beginner

スコア29

test CHANGED
File without changes
test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  x = x ?? 0;
34
34
 
35
- return x == Convert.ChangeType(0, type);
35
+ return x == Convert.ChangeType(0, x.GetType());
36
36
 
37
37
  });
38
38
 
@@ -50,6 +50,8 @@
50
50
 
51
51
  x = x ?? 0;
52
52
 
53
+ type = x.GetType();
54
+
53
55
  return x == new type(0);
54
56
 
55
57
  });

1

コードをわかりやすいように修正

2019/03/30 10:39

投稿

eien_beginner
eien_beginner

スコア29

test CHANGED
File without changes
test CHANGED
@@ -26,9 +26,7 @@
26
26
 
27
27
  ```C#
28
28
 
29
- // 指定された項目が入力済みか否かをチェック
30
-
31
- bool isBlank = 不要記載チェック項目.All(x =>
29
+ bool isBlank = ObjectList.All(x =>
32
30
 
33
31
  {
34
32
 
@@ -46,9 +44,7 @@
46
44
 
47
45
  ```C#
48
46
 
49
- // 指定された項目が入力済みか否かをチェック
50
-
51
- bool isBlank = 不要記載チェック項目.All(x =>
47
+ bool isBlank = ObjectList.All(x =>
52
48
 
53
49
  {
54
50