-
Notifications
You must be signed in to change notification settings - Fork 5k
Add/Expose String.EndsWith(char) #4460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I had the same thought a while back and discovered it would be a breaking change for an edge case in VB. Against the current framework the following is valid VB:
The compiler wraps Whether any of the offending characters or the above scenario is deemed important I would love to hear. Especially a |
It seems like the VB compiler is trying to help by picking an overload that will work. @VSadov -- do you know what the VB compile would do if we were to introduce the @davidfowl can you create an issue in the CoreFx repo (following the API review process)? |
Moved this to the correct repo https://github.com/dotnet/corefx/issues/4805 |
Just to update people subscribed to this topic. It's completed: dotnet/corefx#16198 |
So we don't have to rewrite it over and over 😄. Seems like its already there just made internal for some reason:
https://github.com/dotnet/coreclr/blob/master/src/mscorlib/src/System/String.cs#L2210
People end up writing code like this:
https://github.com/aspnet/dnx/blob/dev/ext/compiler/preprocess/Internalization.cs#L100
and this
https://github.com/aspnet/dnx/blob/dev/src/Microsoft.Dnx.Runtime/NuGet/Utility/PathUtility.cs#L45
The text was updated successfully, but these errors were encountered: