Logo

Programming-Idioms

History of Idiom 97 > diff from v36 to v37

Edit summary for version 37 by OrigamiRobot:
[Csharp] Removed using statement.

Version 36

2019-09-27, 12:53:11

Version 37

2019-09-27, 12:53:47

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