C
C#2y ago
Helle101

❔ ✅ I got a cs0053 and a cs0050 can someone please help me fix them

i cant seem to fix these issues because im kinda new to coding
13 Replies
MODiX
MODiX2y ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat If your code is too long, post it to: https://paste.mod.gg/
Helle101
Helle101OP2y ago
BlazeBin - fmnkwnuhxqxb
A tool for sharing your source code with the world!
Helle101
Helle101OP2y ago
row 5, 7 and 19 has these errors
arion
arion2y ago
Is Position private / protected by any chance? if not mind posting how your position class / struct looks like Note, not providing an access modifier makes it private most of the time
Aaron
Aaron2y ago
internal for classes and structs, but yeah just just have to make Position public
Helle101
Helle101OP2y ago
my position is an internal clas
Aaron
Aaron2y ago
if you want to have a public method that returns IEnumerable<Position>, like you do here, it has to be public
arion
arion2y ago
inconsistent modifiers i guess
Helle101
Helle101OP2y ago
oh ok
arion
arion2y ago
yeah, what A'on said
Helle101
Helle101OP2y ago
it works now when i changed it ty you guys for the help
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server