示例#1
0
            public static DBVariable parse(string pString)
            {
                DBVariable res_ = new DBVariable();

                pString = pString.Trim();
                // pString = pString.Trim(argG).Trim();
                pString = pString.Trim(argL, argR).Trim();

                string[] arr_ = pString.Split(new char[] { charSepLevel }, 2, StringSplitOptions.RemoveEmptyEntries);

                if (arr_.Length > 1)
                {
                    res_.topName = arr_[0];
                    res_.subName = arr_[1];
                }
                else
                if (arr_.Length > 0)
                {
                    res_.topName = arr_[0];
                }

                return(res_);
            }
示例#2
0
 public static string format(DBVariable pItem)
 {
     return(pItem.ToString());
 }