阅读背景:

循环通过2个数组来比较值c#

来源:互联网 

I've looked around and can't really find the specific answer to this problem I have. I have two arrays, one that holds a list of people and another that holds a Person object with a name property. I'm trying to loop through the array of objects and if the value in the .Name of the person equals the corresponding value in the array of strings, then I add 1 to a counter. I've seen answers given using Linq, but i'm not really familiar with that. Is there a basic way to do this that i'm overlooking or will I need to use Linq. Thanks in advance. Here's the code I have.I've looked around and can't really find the sp




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: