Breaking changes to the String class in .NET 4.0(davesbox.com)

submitted by johnsheehanjohnsheehan(4785) 3 years, 6 months ago

This change will affect the behavior of the String.StartsWith, String.EndsWith, String.IndexOf and String.LastIndexOf methods by changing them to perform an ordinal (byte-for-byte) comparison by default instead of a culture-sensitive comparison using CultureInfo.CurrentCulture. In addition, the default overloads of String.ToUpper, String.ToLower, Char.ToUpper and Char.ToLower will be changed to use CultureInfo.InvariantCulture instead of CultureInfo.CurrentCulture.

4 comments |category: |Views: 531

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by samdnpsamdnp(980) 3 years, 6 months ago 0

I think this will solve more existing bugs than it will cause new ones.

Reply

posted by dotnetchrisdotnetchris(157) 3 years, 6 months ago 0

I agree this sounds like a good change.

Reply

information Login or create an account to comment on this story