SyntaxFix
Write A Post
Hire A Developer
Questions
GetType() exists on every single framework type, because it is defined on the base object type. So, regardless of the type itself, you can use it to return the underlying Type
GetType()
object
Type
So, all you need to do is:
u.GetType() == t