C
C#3mo 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
Pobiega3mo ago
do you have your own class called "Task" somewhere? and what is the access modifier on Term?
Xantres
XantresOP3mo ago
Term is "internal class term"
Pobiega
Pobiega3mo ago
ah yes so thats why
Xantres
XantresOP3mo ago
Does it also need to be public?
Pobiega
Pobiega3mo ago
yes This method is public, but it exposes an internal type that wont work
Xantres
XantresOP3mo ago
Thanks, that worked!
Want results from more Discord servers?
Add your server