public static T findFirst <T>(NodeBox box, T clazz, params String[] path) { //T[] result = (T[])findAll(box, clazz, path); //return result.Length > 0 ? result[0] : null; return(default(T)); }
private static void findSub(Box box, List <String> path, ICollection <Box> result) { if (path.Count() > 0) { String head = path[0]; path.RemoveAt(0); if (box is NodeBox) { NodeBox nb = (NodeBox)box; foreach (var candidate in nb.getBoxes()) { if (head == null || head.Equals(candidate.header.getFourcc())) { findSub(candidate, path, result); } } } path.Insert(0, head); } else { result.Add(box); } }
public static Box findFirst(NodeBox box, params String[] path) { //return findFirst(box, Box.gclass, path); return(null); }
public NodeBox(NodeBox other) : base(other) { this.boxes = other.boxes; this.factory = other.factory; }