Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     

C# and .NET Interview questions and answers: - What is Razor and when should we use it?

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


Click here to see more c# and ASP.NET MVC interview question and answers

Share this article   |    Print    |    Article read by 1425 times
Shivprasad koirala Koirala
I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small E-learning company in India. We are very much active in making training videos , writing books and corporate trainings. Do visit my site for .NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers
Related Articles:
Related Interview Questions: