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
Share
Like so:
In other words, specify the generic parameter for the method that you want to use in one of its parameters. You’ll not need to do this where the method is called normally, just in the declaration.