As the title says my list \"Cvqt\" contains different strings for example \"1 maxHearts Player\"
and I\'m trying to check if it contains \" maxHearths \" + na
Contains as it pertains to a List object looks for the entire string in a list of strings.
You are looking for "max clubs" as a substring. That is the "Contains" off the string object
Example:
List x = new List(){"Hello", "goodbye"};
bool y = x.Contains("good"); // will be false
y = x.Contains("goodbye"); // will be true
y = x[0].Contains("Hell"); // will be true
You're probably looking for something like this:
List stringsWithMaxClubs = Cvqt.Where(argString => argString.Contains(" maxClubs " + name)).ToList();