public void readComponents(XmlNodeList nodeList, xmlFileParser xmlFileParser2, int[] TBindex, int[] Hindex, ref List <string> titleBlockInfo1, ref List <List <string> > componentsAttributes1, ref int totalPartCount1) { //Read the parts // XmlNodeList nodeList; if (nodeList.Count == 0) { throw new Exception("No nodes found in xml file when looking for headers"); } xmlFileParser2.getTitleBlockInfo(nodeList[0], TBindex, ref titleBlockInfo1); totalPartCount1 = xmlFileParser2.getComponentInfo(nodeList, Hindex, ref componentsAttributes1); }