It’s a light weight view engine. Till MVC we
had only one view type i.e.ASPX, Razor was introduced in MVC 3.
Razor
is clean, lightweight and syntaxes are each as compared to ASPX. For example in
ASPX to displaysimple 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?
See more stuffs on c# and
ASP.NET MVC interview question and answers
Click here to view more
c#/ ASP .NET
and MVC interview question and answers