© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
136 replies
Blane

How do I add strings to a list?

So what I basically want to do is something along the lines of:
Title.Add(Console.ReadLine());

I want to save string values and then display them in the program if the user chooses to option. My problem lies in that I have no idea on how this works. I've looked at the MSDN and YouTube videos but I just can't seem to grasp it.
Also, I've built up a menu using switch and cases.

The biggest problem of them all is that I have yet to find a good explanation on the difference between
List<string[]> Title = new List<string[]>();
and
List<string> Title = new List<string>();

Since this is assignment, I don't want the answer, I just want to understand how to actually use them and the difference...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,828Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ How do I add a textfile into my list
C#CC# / help
3y ago
❔ how do i attach strings to integers and how do i use strings in while
C#CC# / help
3y ago
How do I split these strings?
C#CC# / help
4y ago