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
Post a Comment