Most voted "contains" questions
9 questions
Sort by count of
-
5
votes2
answers238
viewsHow to find reserved word in a sentence?
I am creating a routine to search reserved words in a text (name of people). I have tested with Contains() and IndexOf(). Works well most of the time. However in some words the return does not…
-
3
votes3
answers468
viewsSearch for word in the first array column
How do I search for a word in all lines, but only in the first column of a array that will always increase in size? string[,] array = new string[1,6]{{"texto","","","","",""}};…
-
2
votes1
answer8466
viewsFind item in a List with Contains method
I have a Data object, which has the attributes name(string) and transactBlock(int). I have a Data List called dataBlock. I want to see if this list has an item already with the same name and…
-
1
votes1
answer395
viewsC# String.Contains() does not work, not even string search derivatives
I have a method in my code that looks for a person’s name inside a string but always returns false. Even when the name exists inside the string. What is totally inexplicable. I tried using Contains…
-
1
votes2
answers1595
viewsCheck if there is value in List
I’m trying to make a condition, where I would check, whether in a List there is a value, so I created the following: private void Itens_Edit(object sender, EventArgs e) { if(editar == 1) { int a =…
-
1
votes1
answer54
viewsOperation of the "Contains() method"
I have a array of strings: string[] warnings = { "INQUIRY REQUEST", "ITEM ALREADY EXISTS", "ITEM NOT FOUND", "END OF FILE", }; and I have a variable with the following value: status = " 18:46:24:97…
-
0
votes1
answer399
viewsDocker is not running
Good night, you guys I installed the Docker and created some container, my computer crashed and after restarting it while trying to run the Docker command returns the message: Is Docker daemon…
-
-1
votes1
answer50
viewsC# Lambda function with multiple validations, checking using contains with multiple comparisons
_release is a List with several records x.located is a bool x.Description is a string I’m trying this way if (_lancamento.Where(x => x.Localizado && x.descricao.Contains(new…
-
-2
votes1
answer30
viewsFilter list by keyword array
The idea is to make a filter. I have a text field that the user types what they want to filter, so I store the typed words in an array. Ex.: The user typed in the "config company" field, the array…