public static CatList MakePair(Object first, Object second) { CatList result = new CatList(); result.Add(first); result.Add(second); return(result); }
public static CatList MakeUnit(Object x) { CatList result = new CatList(); result.Add(x); return(result); }
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); }