コード例 #1
0
        private void SetExportInfo(string[] paramList)
        {
            string            key            = paramList[0];
            string            valueStr       = paramList[1];
            List <ExportInfo> exportInfoList = null;

            exportInfoMap.TryGetValue(key, out exportInfoList);
            if (exportInfoList == null)
            {
                exportInfoList     = new List <ExportInfo>();
                exportInfoMap[key] = exportInfoList;
            }
            string[] valueList = valueStr.Split(',');
            for (int i = 0; i < valueList.Length; i++)
            {
                string     value = valueList[i];
                ExportInfo info  = new ExportInfo();
                if (value.Contains('_'))
                {
                    string[] tmp = value.Split('_');
                    if (tmp.Length == 2)
                    {
                        info.SetData(tmp[0], tmp[1], null);
                    }
                    else if (tmp.Length == 3)
                    {
                        info.SetData(tmp[0], tmp[1], tmp[2]);
                    }
                }
                else
                {
                    info.SetData(value, null, null);
                }
                exportInfoList.Add(info);
            }
        }