© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
2 replies
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
Cannot access non-static field '_settingsService' in static context
?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Why does this code give the CS8604 warning?
C#CC# / help
4y ago
Why does this work the way it does
C#CC# / help
8mo ago
❔ Why does it do this?
C#CC# / help
3y ago
❔ ✅ Why does it work like that
C#CC# / help
3y ago