C
C#2mo ago
Xantres

CS0050: Inconsistent Accessibility

Receiving error message only on methods that return <IEnumerable<obj>>. I checked all my access modifiers and they appear correct. Could anyone assist?
No description
6 Replies
Pobiega
Pobiega2mo ago
do you have your own class called "Task" somewhere? and what is the access modifier on Term?
Xantres
Xantres2mo ago
Term is "internal class term"
Pobiega
Pobiega2mo ago
ah yes so thats why
Xantres
Xantres2mo ago
Does it also need to be public?
Pobiega
Pobiega2mo ago
yes This method is public, but it exposes an internal type that wont work
Xantres
Xantres2mo ago
Thanks, that worked!
Want results from more Discord servers?
Add your server