System.Collections.Generic.List<string> AllRanks = new List<string>();
System.Collections.Generic.List<string> list = new System.Collections.Generic.List<string>(); //... int index = list.FindIndex(new System.Predicate<string>( (value) => { return value == "ABC" || value == "BBC"; }));
private static bool Findlogic(string item) { if(item == "ABC" || item == "BBC") return true; else return false }
int i = AllRanks.FindIndex(Findlogic);
System.Collections.Generic.List
IndexOf
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)