本文介绍了如何查找属于字符串的List的匹配项。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个名为FunctionList的项目列表,还有一个名为mainString的字符串? 我想找到来自属于mainString的FunctionList的匹配项目。 输出将是 var matchItem = 检查每个项目到字符串是否属于字符串; 这里matchItem也是List属于字符串的项目。请帮我用C#或LINQ找出这个解决方案的代码。解决方案 I have a List of Item named "FunctionList" and also have a string named "mainString"?I want to find the matching item one by one from "FunctionList" which belongs to "mainString".The output will be likevar matchItem= "check each item into string belongs to string or not";Here matchItem will be the item from List belongs to string also. Please help me to find out the code for this solution using C# or LINQ. 解决方案 这篇关于如何查找属于字符串的List的匹配项。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-14 23:52