It’s a light weight view engine. Till MVC we had only one view type
i.e.ASPX, Razor was introduced inMVC3.
Razor is clean,
lightweight and syntaxes are each as compared to ASPX. For example in ASPX to
display simple time we need to write.
In
Razor it’s just one line of code.
As
per Microsoft razor is more preferred because its light weight , can be unit
tested and has simple syntaxes comparatively.
Below is an important c# interview question
and answers video
:- What is the difference between string and stringbuilder?
Do visit us for
c# and ASP.NET MVC/ c# and .NET MVC interview
question and answers
Regards,
Click here to see more c# and ASP.NET MVC interview question and answers