In my console application I have a local variable that’s working fine
the moment I make it a private variable to the class, I can’t compile, because it says – an object reference is required for the non static member or property
Any ideas what could be the reason, this is the first time I’ve seen this.
Declare your private variable as static. You’re trying to access a non-static variable from a static function. Note that Main() is static.