public PushValue(T x) { mValue = new CatMetaValue <T>(x); msName = mValue.GetData().ToString(); msValueType = CatKind.TypeNameFromObject(x); mpFxnType = CatFxnType.Create("( -> " + msValueType + ")"); }
public override bool Equals(CatKind k) { if (k == this) { return(true); } if (!(k is CatMetaValue <T>)) { return(false); } CatMetaValue <T> tmp = k as CatMetaValue <T>; return(tmp.GetData().Equals(mData)); }
public T GetValue() { return(mValue.GetData()); }