Why doesn't any of the following compile:
NameOf(value.GetType())
NameOf(GetType(value))
This expression doesn't have a name.
How can I get the string name of the type of the value that was passed? ToString()
might be overloaded, so can't use that.