© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ Why does this code give the CS8604 warning?
C
C# / help
4y ago
Why does this work the way it does
C
C# / help
8mo ago
❔ Why does it do this?
C
C# / help
3y ago
❔ ✅ Why does it work like that
C
C# / help
3y ago