Jurassic.Compiler.DynamicILGenerator.UnboxAny C# (CSharp) 메소드

UnboxAny() 공개 메소드

Pops an object reference (representing a boxed value) from the stack, extracts the value, then pushes the value onto the stack.
public UnboxAny ( Type type ) : void
type System.Type The type of the boxed value. This should be a value type.
리턴 void
        public override void UnboxAny(Type type)
        {
            if (type == null)
                throw new ArgumentNullException("type");
            if (type.IsValueType == false)
                throw new ArgumentException("The type of the boxed value must be a value type.", "type");

            // Get the token for the type.
            int token = this.GetToken(type);
            Emit1ByteOpCodeInt32(0xA5, 1, 1, token);
            PopStackOperands(VESType.Object);
            PushStackOperand(ToVESType(type));
        }
DynamicILGenerator