In C# strings are immutable, this may seem strange at first, especially if you come from C. Get used to it.
The way to go in C# is:
string s = "asdxpto123";
string lookupStr = "xpto";
bool test;
test = s.Contains(lookupStr);
In this case the boolean test will be true. So you can put the string s in your list.Hope it helps.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661