static void Main(string[] args)
        {
            List<GoodsInfo> list = new List<GoodsInfo>();
            GoodsInfo g1 = new GoodsInfo();
            g1.GoodsPriceRangeName = "200~399";
            list.Add(g1);
            GoodsInfo g2 = new GoodsInfo();
            g1.GoodsPriceRangeName = "0~99";
            list.Add(g2);
            GoodsInfo g3 = new GoodsInfo();
            g3.GoodsPriceRangeName = "200-399";
            list.Add(g3);
            UltBLL ultBll = new UltBLL();
            List<Tbl_Dictionary> dictList = ultBll.GetDictInfoByDictType("GoodsPriceRange", false);
            
            foreach (GoodsInfo info in list)
            {
                if (dictList.Exists(dict => dict.DictName.Equals(info.GoodsPriceRangeName)))
                {
                    Console.Write("exists");
                }
            }
            
            Console.WriteLine("ok");
            Console.Read();
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2021-05-28
  • 2021-10-14
相关资源
相似解决方案