© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
7 replies
Welles

Fastest way to change all items in a nested list

Hi all,

So atm I serializing following json string into a list:

[
  {
    "Tag":"Tag1",
    "Categories":["A","B"]
  },
  {
    "Tag":"Tag2",
    "Categories":["A","B"]
  }
]
[
  {
    "Tag":"Tag1",
    "Categories":["A","B"]
  },
  {
    "Tag":"Tag2",
    "Categories":["A","B"]
  }
]


What would the fastest way be to change all category string to lower case? I'm using a nested for loop now after serialization.

Best regards!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

fastest way to check if list doesn't contain null ?
C#CC# / help
16mo ago
Convert empty items in a list to string
C#CC# / help
4y ago
❔ fastest way to add a datatable to database
C#CC# / help
3y ago
How do I change style of nested items?
C#CC# / help
2y ago