private void RemoveBlankPaths (ReferencePathCollection coll) { if (coll == null) return; for (int i = 0; i < coll.Count; i++) { ReferencePath refPath = coll [i]; if (refPath.Path.Length == 0) { coll.RemoveAt (i); i--; } } }