main.cs(27,17): error CS0120: An object reference is required to access non-static member `MainClass.peicePosIndex' c# code example
Example: c# error CS0120
error CS0120: An object reference is required to access
non-static field, method, or property 'Forest.Grow()'
/* This usually means you tried to reference a non-static
member from a class, instead of from an instance */
Forest f = new Forest("Congo", "Tropical");
Forest.Grow(); //Causes error
f.Grow(); //Fixes error