오류 메시지이었다 :얻기 오류 : 필드 이니셜 비 정적 필드, 메소드 또는 속성을 참조 할 수
namespace AmazingPaintball
{
class Paintball
{
public Point startPoint;
public Paintball(Point myPoint)
{
startPoint = myPoint;
}
이이있다 :이 생성자
Error 1 A field initializer cannot reference the non-static field, method, or property 'AmazingPaintball.Form1.thePoint'
Point thePoint = new Point(50, 50);
Paintball gun = new Paintball(thePoint);
어디에서 오류가 발생 했습니까? 그것은 방법에 있습니까? – clcto