Example #1
0
	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;
		}
	}
    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;
        }
    }
Example #3
0
		public CSVColItem(string head,BASIC_TYPE type,int itemCount)
		{
			Head = head;
			this.type = type;
			values = new CSVValue[itemCount];
		}
 public CSVColItem(string head, BASIC_TYPE type, int itemCount)
 {
     Head      = head;
     this.type = type;
     values    = new CSVValue[itemCount];
 }