namespace ConsoleApplication
{
class Program
{
static void Main()
{
int val = 10;
fnctest(val);
Console.WriteLine(val);
}
void fnctest(int val)
{
val = 200;
}
}
}
我收到一个错误:
An object reference is required for the non-static field, method,
or property 'ConsoleApplication'
我能做些什么来解决这个错误?