Logo

Programming-Idioms

History of Idiom 39 > diff from v21 to v22

Edit summary for version 22 by :
New Csharp implementation by user [javasucks]

Version 21

2016-02-16, 17:16:27

Version 22

2016-02-17, 11:23:12

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Code
var b = s.Contains(word);