C
C#2mo 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
Thing from Human Resources
Song is a function and you treat it like a class
Cepo
Cepo2mo ago
i fix it i change Songs to Song and it works
Thing 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
Cepo2mo ago
idk what im doing i never done a normal c# project before only terraria mods
Cepo
Cepo2mo ago
idek what im trying to make
Thing from Human Resources
Normally you'd assign an object it's own class in order to keep up maintainability
Cepo
Cepo2mo ago
so all the songs are going to be one object, and i make them an object by putting them in a class
Cepo
Cepo2mo ago
this what i have now
No description
Thing 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
Cepo2mo ago
im just trying to create a list of songs so that i can test shuffling algorithm how do i make a list lol
Thing 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