.Net Interview Questions and Answers

Search:

.NET interview questions with answers: - What is the difference between Reflection and Dynamic?

By : Shiv Prasad Koirala | May 15th, 2013 | Views : 5263 | Comments : 0 Bookmark and Share

                                               

 

  • Both reflection and dynamic are used when we want to operate on an object during runtime.


  • Reflection is used to inspect meta-data of an object. It also has the ability to invoke members of an object on runtime.

  • Dynamic is a keyword which was introduced in .NET 4.0. It evaluates object calls during runtime. So until the method calls are made compiler is least bothered if those methods / properties etc exist or not.

  • Dynamic uses reflection internally. It caches the method calls made thus improving performance to a certain extent.

  • Reflection can invoke both public and private members of an object while dynamic can only invoke public members.

Below is the detail comparison sheet of the same.

                  


Recently one of our friends was asked a c# design pattern interview question :- Difference between DI vs IOC ? check the same from http://dotnetinter.livejournal.com/68566.html

You can also see our .Net and ASP.NET interview questions with answers videos from http://www.questpond.com

 
Rate this Article :
1 Star
2 Stars
3 Stars
4 Stars
5 Stars
1 1 1 2 1
 
 
Comments

Write a Comment

All fields marked with * are mandatory

62795

 

 
 

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

Article Categories

Learn in Hindi