view Jint.Runtime/VM2/Box.cs @ 2:4aed85a1f558

implemented simple vm2
author cin
date Fri, 25 Oct 2013 15:52:16 +0400
parents 033ebe7432d5
children
line wrap: on
line source

using System;

namespace Jint.Runtime.VM2
{
	using OpCodes;

	public class Box
	{
		public Operation[] impl;
		public object value;

		public Box(object boxValue,Operation[] opImpl) {
			value = boxValue;
			impl = opImpl;
		}

		public Type HoldingType {
			get {
				return value == null ? null : value.GetType ();
			}
		}
	}
}