Skip to content

Use StringComparison or IComparer<string>

Compare
Choose a tag to compare
@tompazourek tompazourek released this 30 May 19:44
· 225 commits to master since this release
  • Changed the API to use more general StringComparison enum or the more general IComparer<string> (instead of StringComparer). Note that using StringComparison instead of IComparer<string>/StringComparer should have better performance as there's no need to allocate substrings.
  • Made NaturalSortComparer public, so you can construct it directly without an extension method.
  • Changed the extension class name (possibly a breaking change if you're not calling it via the extension method).