-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Update String.Split conceptual guide with more String.Split overloads #20123
Comments
I like this idea as well @Youssef1313 Would you like to work on it? |
Related to dotnet/dotnet-api-docs#4309. |
I have added code to illustrate the usage of When somebody revisits this issue at some future time, my suggestion is to add the following markdown just before the Some overloads of the <xref:System.String.Split%2A?displayProperty=nameWithType> method allow you to limit the number of substrings returned in the array. This example limits the number of substrings to four, so it returns the first three words as the first three elements of the array, and the rest of the string as the fourth element.
:::code language="csharp" interactive="try-dotnet-method" source="../../../samples/snippets/csharp/how-to/strings/ParseStringsUsingSplit.cs" id="Snippet6"::: |
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 226914
The text was updated successfully, but these errors were encountered: