Logo

Programming-Idioms

History of Idiom 97 > diff from v35 to v36

Edit summary for version 36 by OrigamiRobot:
New Csharp implementation by user [OrigamiRobot]

Version 35

2019-09-27, 11:38:45

Version 36

2019-09-27, 12:53:11

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
Imports
import System;
Code
var _b = _s.EndsWith(_suffix);
Doc URL
https://docs.microsoft.com/en-us/dotnet/api/system.string.endswith?view=netframework-4.8