Exemplo n.º 1
0
    public TblMng <T> GetTable()
    {
        T       obj    = System.Activator.CreateInstance <T>();
        TblBase objRet = obj as TblBase;

        if (objRet == null)
        {
            return(null);
        }
        if (tblMap.Count != 0)
        {
            return(this);
        }
        TblCore.Ins.AddTable(objRet.TableName, this);
        try
        {
            LoadData(objRet.TableName);
        }
        catch
        {
            Debug.LogError(string.Format("{0} parse error line: {1} col :{2}", objRet.TableName, row, col));
            throw new System.Exception("error");
        }
        return(this);
    }
Exemplo n.º 2
0
    public TblMng <T> GetTable()
    {
        T       obj    = System.Activator.CreateInstance <T>();
        TblBase objRet = obj as TblBase;

        if (objRet == null)
        {
            return(null);
        }
        if (tblMap.Count != 0)
        {
            return(this);
        }
        TblCore.Instance.AddTable(objRet.TableName, this);
        try
        {
            LoadData(objRet.TableName);
        }
        catch
        {
            Debug.LogError(objRet.TableName + " parse error line:" + row + " col:" + col);
            throw new System.Exception("error");
        }
        return(this);
    }