C#非静态的字段方法或属性要求对象引用错误原因
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSy...
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace cmd_test{ class Program { public int a(int a, int b) { int c = a + b; return c; } static void Main(string[] args) { int c = a(1, 2); } }}
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询