-
19-08-2019 - |
문제
문자열이 밑줄이 그어진 오류 "예상 클래스, 인터페이스, 열거 또는 구조"오류가 발생합니까?
public static string IsSelected(this HtmlHelper helper, string A, string B)
{
return "wtf";
}
해결책
확장 방법은 정적 클래스 안에 있어야합니다.
public static class MyExtensions
{
public static string IsSelected( this HtmlHelper helper, string A, string B)
{
return "wtf";
}
}
제휴하지 않습니다 StackOverflow