예제 #1
0
 public PushValue(T x)
 {
     mValue      = new CatMetaValue <T>(x);
     msName      = mValue.GetData().ToString();
     msValueType = CatKind.TypeNameFromObject(x);
     mpFxnType   = CatFxnType.Create("( -> " + msValueType + ")");
 }
예제 #2
0
        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));
        }
예제 #3
0
 public T GetValue()
 {
     return(mValue.GetData());
 }