3
public static class EmptyOrNullHelper
public static string EmptyOrNull(this HtmlHelper helper, IQueryable(T) type)
{
//Code
}
}
public static class EmptyOrNullHelper
public static string EmptyOrNull(this HtmlHelper helper, IQueryable(T) type)
{
//Code
}
}
: 즉
public static class EmptyOrNullHelper
{
public static string EmptyOrNull<T>(this HtmlHelper helper, IQueryable<T> type)
{
//Code
}
}
, 당신은 매개 변수 중 하나에 사용하려는 방법의 일반적인 매개 변수를 지정합니다. 선언문에서 메소드가 정상적으로 호출되는 곳에서는이 작업을 수행 할 필요가 없습니다.
즉, 똑같은 방법으로 일반적인 방법을 쓰십시오. –
@ 마티 - 실제로. –