I have two questions about creating custom HTML Helpers.
1) Where would my method be placed so that it can be used with @Html? I've figured out how use it with something like @MyCustomClass. Either will work, I suppose. Just curious.
2) More importantly, what is "this HtmlHelper htmlHelper"? I notice all the built in helpers, such as ActionLink for example, start with this parameter, but then no value is actually passed in for it. BUT... when I try to create my own custom HTML helper, it seems to want a value for this parameter or it gives me, "The best overload method contains more than x parameters."
I am trying to implement this example:
public static string IsSelected(this HtmlHelper html, string controllers = "", string actions = "", string cssClass = "selected")
{
...
}