Example #1
0
    public int GetInt(string key)
    {
        string content = null;

        try
        {
            if (this.ContainsKey(key))
            {
                content = this[key];
                return(ParseTool.GetInt(content));
            }

            if (data.m_defaultValue.ContainsKey(key))
            {
                content = data.m_defaultValue[key];
                return(ParseTool.GetInt(content));
            }
        }
        catch (Exception e)
        {
            throw new Exception("SingleData GetInt Error TableName is :->" + data.m_tableName + "<- key : ->" + key + "<-  singleDataName : ->" + m_SingleDataKey + "<- content: ->" + content + "<- \n" + e.ToString());
        }

        throw new Exception("Don't Exist Value or DefaultValue TableName is :->" + data.m_tableName + "<- key : ->" + key + "<-  singleDataName : ->" + m_SingleDataKey + "<-");// throw
    }