Rhino.ScriptRuntime.TypeofName C# (CSharp) Method

TypeofName() public static method

The typeof operator that correctly handles the undefined case
public static TypeofName ( Scriptable scope, string id ) : string
scope Scriptable
id string
return string
		public static string TypeofName(Scriptable scope, string id)
		{
			Context cx = Context.GetContext();
			Scriptable val = Bind(cx, scope, id);
			if (val == null)
			{
				return "undefined";
			}
			return Typeof(GetObjectProp(val, id, cx));
		}
ScriptRuntime