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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 19, 2011, 1:23 PM EDT
Please refer to the C# Corner article:
http://www.c-sharpcorner.com/UploadFile/harishankar2005/Reflectionin.NET12032005045926AM/Reflectionin.NET.aspx
Mahesh ChandRank #1 · 393.3K reputationPosted Oct 19, 2011, 3:04 PM EDT
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.
Mahesh ChandRank #1 · 393.3K reputationPosted Oct 19, 2011, 3:04 PM EDT
Prabhu RajaRank #861 · 2.6K reputationPosted Oct 19, 2011, 11:06 PM EDT
Check out Reflection in Detail from dozens of Excellent Articles.
http://www.c-sharpcorner.com/Search/?sKeywords=Reflection+.net
Dipal ChoksiRank #199 · 12K reputationPosted Oct 19, 2011, 11:33 PM EDT
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!
Satyapriya NayakRank #47 · 31.5K reputationPosted Oct 20, 2011, 12:08 AM EDT
Please refer Our recommended articles
Thanks