String functions StartsWith and EndsWith are case-sensitive in .NET

String functions StartsWith and EndsWith are case-sensitive in .NET

Did you know that String functions StartsWith and EndsWith are case-sensitive even in VB.NET?

You will need to make sure you are looking for the correct string, since ‘abc’ with case-sensitivity is different than ‘ABC’. So, if your function is looking for ‘abc’, you must make sure that you make adjustments to the string, in order to catch things like this.

To do this, you would need to change myString.EndsWith(“abc”); to myString.ToLower.EndsWith(“abc”);

mobile app development companies in New York

NYC web development companies

custom software development companies in NYC

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *