Exemple #1
0
        public static CatList MakePair(Object first, Object second)
        {
            CatList result = new CatList();

            result.Add(first);
            result.Add(second);
            return(result);
        }
Exemple #2
0
        public static CatList MakeUnit(Object x)
        {
            CatList result = new CatList();

            result.Add(x);
            return(result);
        }
Exemple #3
0
        public CatList ToList()
        {
            CatList ret = new CatList();

            ret.Add(GetLabel());
            if (Count > 0)
            {
                foreach (CatMetaData child in this)
                {
                    ret.Add(child);
                }
            }
            else
            {
                ret.Add(GetContent());
            }
            return(ret);
        }