Esempio n. 1
0
 public IEnumerable <ItemDropTip> GetMustTips()
 {
     if (string.IsNullOrEmpty(MustValue))
     {
         yield break;
     }
     foreach (var line in MustValue.Split('\n'))
     {
         yield return(ItemDropTip.Parse(line));
     }
 }
Esempio n. 2
0
        public static ItemDropTip Parse(string line)
        {
            if (string.IsNullOrEmpty(line))
            {
                return(null);
            }
            ItemDropTip rst = new ItemDropTip();

            rst.key = line.Split(':')[0];
            if (line.Contains("#"))
            {
                rst.paras = line.Split(':')[1].Split('#')[0].Split(',').ToList();
                rst.paras.Add(line.Split(':')[1].Split('#')[1]);
            }
            else
            {
                rst.paras = line.Split(':')[1].Split(',').ToList();
            }
            return(rst);
        }