This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18330|Reply: 1

[ASP.NET] list collection deduplicates data

[Copy link]
Posted on 6/9/2015 9:20:34 PM | | | |
  1. List<DataLinq.baobiao> listbaobiao = BLL.BaoBiaoManager.GetBaobiao(zid);
  2.                         List<string> stringname = new List<string>();
  3.                         foreach (DataLinq.baobiao name in listbaobiao) {
  4.                             stringname.Add(name.bname);
  5.                         }
  6.                         HashSet<string> hs = new HashSet<string>(stringname);
Copy code
See for yourself the code! The renderings are as follows:






Previous:iPad Air2 upgrade experience from iOS 8.3 to 9.0 and several known flaws
Next:ASP.NET uses MD5 encryption
Posted on 6/12/2015 9:35:42 PM |
The landlord quickly passed the third level
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com