Rhino.ScriptRuntime.In C# (CSharp) Method

In() public static method

The in operator.
The in operator. This is a new JS 1.3 language feature. The in operator mirrors the operation of the for .. in construct, and tests whether the rhs has the property given by the lhs. It is different from the for .. in construct in that:
- it doesn't perform ToObject on the right hand side
- it returns true for DontEnum properties.
public static In ( object a, object b, Context cx ) : bool
a object the left hand operand
b object the right hand operand
cx Context
return bool
		public static bool In(object a, object b, Context cx)
		{
			if (!(b is Scriptable))
			{
				throw TypeError0("msg.in.not.object");
			}
			return HasObjectElem((Scriptable)b, a, cx);
		}
ScriptRuntime