using AlicizaX; namespace AlicizaX.Runtime { /// /// System.Int16 变量类。 /// public sealed class VarInt16 : Variable { /// /// 初始化 System.Int16 变量类的新实例。 /// public VarInt16() { } /// /// 从 System.Int16 到 System.Int16 变量类的隐式转换。 /// /// 值。 public static implicit operator VarInt16(short value) { VarInt16 varValue = ReferencePool.Acquire(); varValue.Value = value; return varValue; } /// /// 从 System.Int16 变量类到 System.Int16 的隐式转换。 /// /// 值。 public static implicit operator short(VarInt16 value) { return value.Value; } } }