C
C#6mo ago
Cepo

✅ why not working

i created a constructor and im trying to use it but im getting red squiggle lines
No description
12 Replies
The Fog from Human Resources
Song is a function and you treat it like a class
Cepo
CepoOP6mo ago
i fix it i change Songs to Song and it works
The Fog from Human Resources
I'm a little confused by your overall project structure Project namespace is SongsSelected, Songs is your list of songs and also the entry point of your program?
Cepo
CepoOP6mo ago
idk what im doing i never done a normal c# project before only terraria mods
Cepo
CepoOP6mo ago
idek what im trying to make
The Fog from Human Resources
Normally you'd assign an object it's own class in order to keep up maintainability
Cepo
CepoOP6mo ago
so all the songs are going to be one object, and i make them an object by putting them in a class
Cepo
CepoOP6mo ago
this what i have now
No description
The Fog from Human Resources
I mean you could make a List of Song where Song is an Object class you can create and add to your list
Cepo
CepoOP6mo ago
im just trying to create a list of songs so that i can test shuffling algorithm how do i make a list lol
The Fog from Human Resources
List<T> myList = new List<T>(); Note that T should be your actual Type
Want results from more Discord servers?
Add your server