private void parseParams(List <string> paramFileLines) { //lee y enterpreta los parametros de el fichero y popula la estructura basica for (int i = 0; i < paramFileLines.Count(); i++) { string stringedName = paramFileLines[i].ToString(); if (isSectionName(stringedName)) { string name = cleanSectionName(stringedName); ParamsSection ps = new ParamsSection(name); parameters.Add(ps); } else if (!isCommentedString(stringedName)) { string [] paramKeyValue = getKeyValueParameter(stringedName); int sectionIndex = parameters.Count(); parameters[sectionIndex - 1].addParameter(paramKeyValue[0], paramKeyValue[1]); } } }
private void parseParams(List<string> paramFileLines) { //lee y enterpreta los parametros de el fichero y popula la estructura basica for (int i = 0; i < paramFileLines.Count(); i++) { string stringedName = paramFileLines[i].ToString(); if ( isSectionName(stringedName) ) { string name = cleanSectionName( stringedName ); ParamsSection ps = new ParamsSection(name); parameters.Add(ps); } else if( !isCommentedString(stringedName) ) { string [] paramKeyValue = getKeyValueParameter(stringedName); int sectionIndex = parameters.Count(); parameters[sectionIndex-1].addParameter(paramKeyValue[0], paramKeyValue[1]); } } }