我已经四处寻找这个有一段时间了。我想知道如何获取传递到创建列表的模板类型。例如。
List<string> listOfStrings = new List<string>();
我如何从中获取字符串类型?我知道如何使用类型来获取字段并查找列表类型,但不知道其中的模板。
c# reflection templates types
c# ×1
reflection ×1
templates ×1
types ×1