Jurassic.Compiler.DynamicILGenerator.IsInstance C# (CSharp) Method

IsInstance() public method

Pops an object off the stack, checks that the object inherits from or implements the given type, and pushes either the object (if the check was successful) or null (if the check failed) onto the stack.
public IsInstance ( Type type ) : void
type System.Type The type of the class the object inherits from or the interface the /// object implements.
return void
        public override void IsInstance(Type type)
        {
            if (type == null)
                throw new ArgumentNullException("type");
            int token = this.GetToken(type);
            Emit1ByteOpCodeInt32(0x75, 1, 1, token);
            PopStackOperands(VESType.Object);
            PushStackOperand(VESType.Object);
        }
DynamicILGenerator