Hi,
I have learned shared assembly, what is the benefits of using Reflection other than shared assembly?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Oct 20, 2011, 4:08 AM
Please refer Our recommended articles
Thanks
Dipal ChoksiPosted Oct 20, 2011, 3:33 AM
You can use reflection not only to find more information about an object/class, you can also use it to invoke methods or hook up events. You can take reflection one step further and create (the technical term is 'emit') dynamic assemblies too!
As a live example, in the Export Gridview to Excel article, I have used reflection to find the contents of a gridview cell in order to get the correct control properties and their values to be transferred to Excel.
It's good to explore the potential uses of any functionality - you get a good understanding of "what it is" and also find out "why/where can this be used".
Cheers!
Prabhu RajaPosted Oct 20, 2011, 3:06 AM
Check out Reflection in Detail from dozens of Excellent Articles.
http://www.c-sharpcorner.com/Search/?sKeywords=Reflection+.net
Mahesh ChandPosted Oct 19, 2011, 7:04 PM
Mahesh ChandPosted Oct 19, 2011, 7:04 PM
One good example can be Visual Studio Intellisense. Based on the class you use in the Visual Studio 2010, Intellisense loads that assembly dynamically using reflection, reads its methods and properties and shows you in the available list.
Javeed M ShaikhPosted Oct 19, 2011, 5:23 PM
Please refer to the C# Corner article:
http://www.c-sharpcorner.com/UploadFile/harishankar2005/Reflectionin.NET12032005045926AM/Reflectionin.NET.aspx