C# safe case insensitive contains string

Date: 2019-10-25
public static bool HasString(string src, string item)
{
	return src?.IndexOf(item ?? "", StringComparison.OrdinalIgnoreCase) >= 0;
}

27220cookie-checkC# safe case insensitive contains string