I have a situation where an untyped variable is passed in a method
call and I need to determine the data type for the variable. My first
thought was to use typeof, but typeof returns "number" for an int,
uint, or a Number. The operator "is" will not work on primitives.

Is there any way to determine the data type of an untyped primitive
object?

Reply via email to