"An object reference is required for the non-static field, method, or property" for nested classes accessing parent class fields
Lets say that I have the following C# code: public class Foo { public string someString; public class Bar { public string ReturnSomething() { return someString; } } } I assumed that an inner class could access state from its parent class, but when I try, I get the following error: [CS0120] An object reference… Read More "An object reference is required for the non-static field, method, or property" for nested classes accessing parent class fields