public void addChildBefore(EscherRecord record, int insertBeforeRecordId) {int idx = 0;for (EscherRecord rec : this) {if(rec.getRecordId() == (short)insertBeforeRecordId) {break;}idx++;}_childRecords.add(idx, record);}
public void AddChildBefore(EscherRecord record, int insertBeforeRecordId){for (int i = 0; i < _childRecords.Count; i++){EscherRecord rec = _childRecords[(i)];if (rec.RecordId == insertBeforeRecordId){_childRecords.Insert(i++, record);}}}