public Type typeOf( Object value )
Public Function typeOf ( value As Object ) As Type
public: Type^ typeOf( Object^ value )
member typeOf : value : Object -> Type
This function is similar to C#'s typeof operator. It is overloaded with typeOfT and selected at runtime if value cannot be used as a type argument. Note that this applies to some host types; examples are static types and overloaded generic type groups.
This function throws an exception if the script engine's AllowReflection property is set to false.
var ConsoleT = host.type("System.Console"); var name = host.typeOf(ConsoleT).AssemblyQualifiedName;