Skip to content
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

Open
Youssef1313 opened this issue Aug 16, 2020 · 3 comments · May be fixed by #44736
Open

Update String.Split conceptual guide with more String.Split overloads #20123

Youssef1313 opened this issue Aug 16, 2020 · 3 comments · May be fixed by #44736
Assignees
Labels
dotnet-csharp/svc fundamentals/subsvc in-pr This issue will be closed (fixed) by an active pull request. okr-freshness OKR: Freshness of content okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@Youssef1313
Copy link
Member

Youssef1313 commented Aug 16, 2020


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 226914

@BillWagner
Copy link
Member

I like this idea as well @Youssef1313

Would you like to work on it?

@gewarren
Copy link
Contributor

Related to dotnet/dotnet-api-docs#4309.

@BillWagner BillWagner added doc-enhancement and removed ⌚ Not Triaged Not triaged labels Aug 18, 2020
@PRMerger7 PRMerger7 added the Pri2 label Dec 8, 2020
@gewarren gewarren added Pri1 and removed P1 labels Jan 29, 2021
@CamSoper CamSoper self-assigned this Mar 5, 2024
@CamSoper CamSoper added the 🗺️ reQUEST Triggers an issue to be imported into Quest. label Mar 5, 2024
@sequestor sequestor bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Mar 6, 2024
@dotnet-policy-service dotnet-policy-service bot added the in-pr This issue will be closed (fixed) by an active pull request. label Mar 6, 2024
@CamSoper
Copy link
Contributor

CamSoper commented Mar 6, 2024

I have added code to illustrate the usage of int32 in String.Split overloads. The code was added in #39850 but since Try.NET doesn't support it as of this writing, and I think interactivity is a good fit for that page, I'm holding the text I wrote out of the article.

When somebody revisits this issue at some future time, my suggestion is to add the following markdown just before the ## See Also:

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":::

@CamSoper CamSoper removed the in-pr This issue will be closed (fixed) by an active pull request. label Mar 6, 2024
@CamSoper CamSoper removed their assignment Mar 6, 2024
@BillWagner BillWagner self-assigned this Feb 6, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 6, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 6, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 6, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 6, 2025
@BillWagner BillWagner moved this from 🔖 Ready to 🏗 In progress in dotnet/docs February 2025 sprint project Feb 10, 2025
@dotnetrepoman dotnetrepoman bot added the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 10, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 🗺️ mapQUEST Only used as a way to mark an issue as updated for quest. RepoMan should instantly remove it. label Feb 10, 2025
@BillWagner BillWagner added okr-freshness OKR: Freshness of content okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. labels Feb 10, 2025
@BillWagner BillWagner linked a pull request Feb 10, 2025 that will close this issue
@dotnet-policy-service dotnet-policy-service bot added the in-pr This issue will be closed (fixed) by an active pull request. label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-csharp/svc fundamentals/subsvc in-pr This issue will be closed (fixed) by an active pull request. okr-freshness OKR: Freshness of content okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

6 participants