I have a class in an assembly I am reflecting through:
public class Example
{
public List<int> things;
}
When reflecting over the assembly and grabbing type.Name:
foreach(var type in typeof(Example).Assembly.GetTypes())
var hold = type.Name;
What is stored in the variable hold
is just generic brackets, <>
, and the type.FullName is Example+<>
. What is going on? This works with every other class in the assembly. This class does have two partial files, neither define it to be generic though.
Aucun commentaire:
Enregistrer un commentaire