© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
Emelie

❔ How do I initialize a static list with objects? (Quidditch app)

I am feeling completely lost on this. I have a playermanager which contains a static list of Player objects.
but no matter what I do, I get errors when I try to add demo players to the list... Why is this? I have attached an image of the static list and the player class itself.
image.png
image.png
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

❔ How do i sort a list of objects by multiple possible items
C#CC# / help
4y ago
❔ Trying to a initialize a list of objects, but keep getting this error:
C#CC# / help
3y ago
How do i make a random a static?
C#CC# / help
3y ago
❔ How to create a list of generic objects?
C#CC# / help
3y ago