c# - ArrayList.IndexOf( wild card? ) -


i'm trying find index of first element of arraylist 'tag' property not equal null.

i thought effect of

arraylist.indexof(p => p.tag != null); 

or

arraylist.indexof(*.tag != null); 

but neither of these work. there way use indexof property of object?

try array.findindex:

searches element matches conditions defined specified predicate, , returns zero-based index of first occurrence within entire array.


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? -