C
C#2y ago
peppy

❔ Why is typeof(T).FullName a ``string?``, but typeof(T).Name a ``string``

And in which instances is typeof(T).FullName potentially null? Is there a circumstance in which I can't rely on that field being available?
3 Replies
mtreit
mtreit2y ago
No and no Compare the values and you will see the difference
peppy
peppyOP2y ago
Alright. I read up the MSDN article as well. Long story short, something like typeof(ExampleClass).FullName is always there and so is typeof(T).FullName in, for instance, public void Method1<T>(). This is all I need, so if I've understood that right, all good.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server