Example #1
0
        internal Mars_RowColumnInfo(object objData)
        {
            this.CurrentDataType = E_RowColumnType.eType_String;
            if (objData is int)
            {
                this.CurrentDataType = E_RowColumnType.eType_Number;
            }
            int iNumber;

            if (int.TryParse(objData.ToString(), out iNumber))
            {
                this.CurrentDataType = E_RowColumnType.eType_Number;
                currentData          = iNumber;
                return;
            }

            this.currentData = objData;
        }
        internal Mars_RowColumnInfo(object objData)
        {
            this.CurrentDataType = E_RowColumnType.eType_String;
            if (objData is int)
            {
                this.CurrentDataType = E_RowColumnType.eType_Number;
            }
            int iNumber;
            if (int.TryParse(objData.ToString(), out iNumber))
            {
                this.CurrentDataType = E_RowColumnType.eType_Number;
                currentData = iNumber;
                return;
            }

            this.currentData = objData;
        }