回答編集履歴

1

不要コード削除

2023/05/16 15:23

投稿

draq
draq

スコア2573

test CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
  ```C#
6
6
  using System;
7
- using System.Linq;
8
7
 
9
8
  public class Program {
10
9
  public static void Main(){
@@ -23,7 +22,7 @@
23
22
  }
24
23
 
25
24
  // T を型推論で決定させるためだけのラッパーメソッド
26
- private static void GenericMethodWrapper<T>(T obj) where T: BaseClass {
25
+ private static void GenericMethodWrapper<T>(T unused) where T: BaseClass {
27
26
  GenericMethod<T>();
28
27
  }
29
28