/// <summary> /// List all the loops retrieved /// from the given element. /// </summary> static void ListLoops(Element e, JtLoops loops) { int nLoops = loops.Count; Debug.Print("{0} has {1}{2}", Util.ElementDescription(e), Util.PluralString(nLoops, "loop"), Util.DotOrColon(nLoops)); int i = 0; foreach (JtLoop loop in loops) { Debug.Print(" {0}: {1}", i++, loop.ToString()); } }