S
shapper
Hello,
I have the following code:
public static class HtmlHelperExtensions {
public static string ToolTip(this HtmlHelper helper, string name)
{
return ToolTip(helper, name, null, null);
}
...
HtmlHelper is a class in System.Web.MVC.
Instead of having the ToolTip inside a new class named
HtmlHelperExtenstions can I make my ToolTip method to some how extend
the HtmlHelper, i.e., to be also inside "HtmlHelper'?
And if yes, should I do this?
Thanks,
Miguel
I have the following code:
public static class HtmlHelperExtensions {
public static string ToolTip(this HtmlHelper helper, string name)
{
return ToolTip(helper, name, null, null);
}
...
HtmlHelper is a class in System.Web.MVC.
Instead of having the ToolTip inside a new class named
HtmlHelperExtenstions can I make my ToolTip method to some how extend
the HtmlHelper, i.e., to be also inside "HtmlHelper'?
And if yes, should I do this?
Thanks,
Miguel