© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
10 replies
caiosa2339
❔ How to add a list of type of another class in c#?
I
'm doing a program where I need to store the a list of the Person class in the class of People
. A Person is defined by her name
, and age
.
.
.How do I store a list of Person inside the People class
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ Cant convert a list to list of a class type?
C
C# / help
4y ago
accessing an instance of a class in another class
C
C# / help
3y ago
use parameter from a class of type form in another form
C
C# / help
2y ago