-
Notifications
You must be signed in to change notification settings - Fork 24
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
add ReadOnlySpan<char> as string parameter #9
Comments
Thank you for your good suggestion! Just to confirm, do you mean you want some overload methods like following?
|
Absolutely, I guess every living net library will get to this point soon. |
I think I would love to implement |
Have you consider this method: public int GetHashCode (ReadOnlySpan<char> source, System.Globalization.CompareOptions options); The following code worked for me (win10, netcore 3.1) ReadOnlySpan<char> span = test.AsSpan ();
int a = string.GetHashCode (span, StringComparison.CurrentCulture); |
@xin9le I would love this feature too! :) |
I am motivated to improve, but I have been working extremely hard for the past few years. I apologize for putting the improvement task on the back burner. |
Although it has taken a considerable amount of time, we have now addressed this request. We will be releasing the NuGet Package in the near future 🚀 |
I've just released v2.0.0-preview2. Please take advantage of it. |
First, thank you for this remarkable utility. Do you plan to introduce 'ReadOnlySpan' as string parameter?
The text was updated successfully, but these errors were encountered: