namespace WS
{
    /// <summary>long变量</summary>
    public class VarLong : Variable<long>
    {
        /// <summary>分配一个对象</summary>
        public static VarLong Alloc()
        {
            VarLong var = new VarLong();
            var.Value = 0;
            return var;
        }

        /// <summary>分配一个对象</summary>
        /// <param name="value">初始值</param>
        public static VarLong Alloc(long value)
        {
            VarLong var = Alloc();
            var.Value = value;
            return var;
        }

        /// <summary>VarLong -> long</summary>
        public static implicit operator long(VarLong value)
        {
            return value.Value;
        }
    }
}