Top "Contains" questions

The "contains" operator/method is used to determine if an entity collection contains an element with a particular property.

High performance "contains" search in list of strings in C#

I have a list of approx. 500,000 strings, each approx. 100 characters long. Given a search term, I want to identify all …

c# string search sorting contains
Howto override List<T> Contains

I want to compare a property instead of the entire object using a List[MyObject]. I therefore use IEquatable[MyObject] …

c# generics contains iequatable
CakePHP 2.1 find using contain with condition

I have the following models. Industry(id, name) Movie(id, name, industry_id) [Industry has many movies] Trailer(id, name, …

cakephp find cakephp-2.1 contains
Javascript array contains/includes sub array

I need to check if an array contains another array. The order of the subarray is important but the actual …

javascript arrays include contains indexof
Freemarker 'Collection.contains' functionality

From my java code I'm returning a Set<String>. The view needs to check if the Set contains …

java collections contains freemarker
Determine if all characters in a string are the same

I have a situation where I need to try and filter out fake SSN numbers. From what I've seen so …

c# string contains
Syntax error near 'of' in the full-text search condition 'control of'

I have the following WHERE clause: WHERE (@Keywords IS NULL OR (CONTAINS((p.Title, p.Area, p.[Message]), @Keywords)) ) If @…

sql-server-2008 full-text-search contains
What's different between Contains and Exists in List<T>?

I want to know what's different between Contains and Exists in List<T> ? They can both determine whether …

c# list contains exists
Does array element contain substring?

I'd like a function that checks whether an array's items contain a string. As such: array(1 => 'Super-user', 'Root', 'Admin', …

php arrays string contains
Functionality of Python `in` vs. `__contains__`

I implemented the __contains__ method on a class for the first time the other day, and the behavior wasn't what …

python python-2.7 contains