2019/03/19

· Basic/C#
Error 메시지error CS0120: An object reference is required for the non-static field, method, or property 발생 상황class Program { void TestMethod() { // Process } static void Main(string[] args) { TestMethod(); } } TestMethod()를 진행하려고 하는데, 위와 같은 에러 메시지가 떴다. 해결 방법1class Program { static void TestMethod() { // Process } static void Main(string[] args) { TestMethod(); } } 말 그대로 non-static field인 메서드를 실행하려고..
에반황
'2019/03/19 글 목록