Same:
public static class EmptyOrNullHelper
{
public static string EmptyOrNull<T>(this HtmlHelper helper, IQueryable<T> type)
{
}
}
In other words, specify a general parameter for the method that you want to use in one of its parameters. You will not need to do this when the method is called normally, only in the declaration.
source
share