Member '000000' cannot be accessed with an instance reference; qualify it with a type name instead
static을 적용하지 않았을 때 나오는 오류 문구이다. 000000에 static을 적용해야한다.
static 뜻은 아래 참고
https://greenchoco.tistory.com/137
C#기초 static 메서드 뜻
"정적인"이라는 뜻. 이를 이용하면 객체를 생성하지 않고 멤버를 사용할 수 있게 된다. 즉, 인스턴스를 만들지 않고 쓸 수 있는 메서드로, 객체를 통하지 않고클래스 이름으로 접근한다. 예를 들
greenchoco.tistory.com
728x90
댓글