public CSVValue(string head,string strValue,BASIC_TYPE type,int rowIndex,int colIndex) { Head = head; StrValue = strValue; mType = type; RowIndex = rowIndex; ColIndex = colIndex; // 解析 switch (mType) { case BASIC_TYPE.INT: IntValue = int.Parse (StrValue); break; case BASIC_TYPE.FLOAT: FloatValue = float.Parse (StrValue); break; default: break; } }