Sunday, December 3, 2017

There is now a distinction between .Trim() and .TrimStart() and .TrimEnd() in C#!

The first of these removes BOTH leading and and trailing whitespace at a string, as .trim() will in JavaScript, and with that in mind you can probably guess what the other two things do, huh?

No comments:

Post a Comment