S
S
stoxx20112015-12-23 18:10:29
ASP.NET
stoxx2011, 2015-12-23 18:10:29

Is Html.Raw(string) a strongly typed helper?

The lab defense instructor asked what type this Html.Raw(string) helper is. I tell him that this is a helper built into html, not strongly-typed, but the teacher is strongly-typed. Moreover, its argument is that here the Html object is used in the line.
Please tell me who is right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2015-12-23
@stoxx2011

What does "Strongly typed helper" mean? Here is the method signature -

public IHtmlString Raw(string value);
public IHtmlString Raw(object value);

The method is overloaded and returns an object that implements the IHtmlString interface. What do you think is not strictly typed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question