private bool SystemExists(string systemName)
{
text = text.Trim().ToLower();
string[] parts = systemNames.Split(',');
int count = (from part in parts
where part.Trim().ToLower() == systemName
select part).Count();
return (count > 0);
}
If you want it to be case-sensitive, just remove the calls to
string.ToLower()
.
EDIT ===========
Why was this voted a 1? It's correct, and fulfills the stated needs of the OP.