static public void AddClass(this ClassLibrary item, Type type, string layout, string text) { item.AddClass( new CmlClass_Entity(type, layout, CmlEntity.DOMify(text)) ); }
static public void AddClasses(this ClassLibrary item, IEnumerable <CmlClass> to_add) { to_add.Process(c => item.AddClass(c)); }