Questions tagged as 'contains'

2
answers

How to find a reserved word in a sentence?

I'm creating a routine to search for reserved words in a text (people's names). I have already tested with Contains() and IndexOf() . It works well most of the time. However in some words the return does not satisfy. Example: CORAL...
asked by 01.11.2017 / 17:50
3
answers

Search for word in the first array column [closed]

How do I search for a word in all rows, but only in the first column of an array that will always increase in size? string[,] array = new string[1,6]{{"texto","","","","",""}}; if(array[array.Length, 0].Contains("texto")){...
asked by 17.10.2016 / 00:26
1
answer

Find item in a List with Contains method

I have an object of type Data, which has the attributes name (string) and transacaBloqueio (int). I have a Data List called SharedBlock data. I want to check if this list has an item already with the same name and same transaction as the last on...
asked by 27.05.2016 / 17:54
2
answers

Check if there is a value in List

I'm trying to make a condition where I would check if there is a value in List , so I created the following: private void Itens_Edit(object sender, EventArgs e) { if(editar == 1) { int a = Convert.ToInt3...
asked by 18.05.2017 / 19:43
1
answer

C # String.Contains () does not work, not even string search derivatives [closed]

I have a method in my code that looks up a person's name inside a string but always returns false. Even when the name exists inside the string. Which is totally inexplicable. I tried using Contains ex: linha.Contains(nome); I tried to us...
asked by 28.03.2017 / 21:15
1
answer

Docker is not running

Good evening, guys I installed the docker and created some container, my computer crashed and after restarting it when trying to execute the docker command returns the message: Is docker daemon running on this host? On the internet I found...
asked by 13.06.2017 / 07:41