Logo

Programming-Idioms

History of Idiom 97 > diff from v34 to v35

Edit summary for version 35 by pkfishbone:
New Csharp implementation by user [pkfishbone]

Version 34

2019-06-07, 10:27:42

Version 35

2019-09-27, 11:38:45

Idiom #97 Check string suffix

Set boolean b to true if string s ends with string suffix, false otherwise.

Illustration

Idiom #97 Check string suffix

Set boolean b to true if string s ends with string suffix, false otherwise.

Illustration
Extra Keywords
tail
Extra Keywords
tail
Code
bool b = s.EndsWith(suffix);