Jump to content
We've recently updated our Privacy Statement, available here ×

Error: An object reference is required for the non-static field, method, or property


Recommended Posts

In this article, we discussed a programming error that is commonly faced by new programmers. The reason behind the Error occurrence is that, calls a non-static field, property, or method from a static class. Static members are static in nature and not callable in the non-static field. Static members cannot be instantiated and inherited due to their static nature. Error: An object reference is required for the non-static field, method, or property

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...