C
C#7mo ago
Eple

Why does it give the error?

Here the property is not marked as static. Why does it give the message Cannot access non-static field '_settingsService' in static context?
No description
2 Replies
Jimmacle
Jimmacle7mo ago
you can't access non-static members in property initializers like that, you'll have to do it in an explicit constructor
Eple
EpleOP7mo ago
Got it, thanks.
Want results from more Discord servers?
Add your server