how to match 2 arrays ironpython or c# -


possible duplicate:
how match 2 arrays

i have 2 arrays

a = [good, bad, cat, frog]
and
b = [best, great, ill, evil, wicked, rotten, vicious, poor, nasty, puss, toad, paddock]

and want match between 2 arrays

result
[good : best, great]
[bad : ill, evil, wicked, rotten, vicious, poor, nasty]
[cat : puss]
[frog : toad, paddock]

try this,

string[] roles = {"a", "e", "f", "h"}; string[] allroles = {"a", "b", "c", "d", "e", "f", "g", "h", "i"};  foreach (string nextrole in allroles) {     if(array.indexof(roles, nextrole) != -1)     {         response.write(nextrole + "<br/>");     } } 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -