Answered by:
Reflection

Question
-
Hi
Any body please explain reflection concept with real world example.
Regards,
Ravikumar.N
Tuesday, April 6, 2010 1:56 PM
Answers
-
So reflection enables you to find out information about types in your assemblies during runtime. Using reflection, you can find out the details of an object's methods in terms of its access modifier ( private, public etc.), you can discover the name and types of parameters in a methods signature.
http://www.muellerdesigns.net/dasblog/2005/07/18/AnExampleOfReflectionUsingC.aspxThanks,
A.m.a.L
[MVP Visual C#]
Dot Net Goodies
Don't hate the hacker, hate the code - Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 2:23 PM -
"Introduction
In this article I tried to cover all the topics from .NET Reflection with examples. I have stated with definition of .NET Reflection and its road map, list of mostly used classes the System.Reflection namespace provides and importance of Type class in .net Reflection. you will also learn how to get the type information using different ways. Use of properties and methods of Type class in .NET Reflection with examples are interesting in this article. You will also see advance Reflection topic like dynamically loading an assembly and late binding end of this article."
Reference: http://www.codeproject.com/KB/dotnet/Reflection.aspx (Reflection in .NET)
My Blog - MSDN Complement By Providing Visual C# Walkthroughs and Sample Codes - Founded In February 24, 2010- Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 3:27 PM -
Also see a real world example of Reflection and Expressions combined here. It's part of a framework for providing a fluent alternative for the Assert.IsXXX and Assert.AreXXXX methods you typically use in unit tests.
- Proposed as answer by DennisDoomen Friday, April 9, 2010 6:20 PM
- Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 4:24 PM -
- Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 9:36 PM
All replies
-
So reflection enables you to find out information about types in your assemblies during runtime. Using reflection, you can find out the details of an object's methods in terms of its access modifier ( private, public etc.), you can discover the name and types of parameters in a methods signature.
http://www.muellerdesigns.net/dasblog/2005/07/18/AnExampleOfReflectionUsingC.aspxThanks,
A.m.a.L
[MVP Visual C#]
Dot Net Goodies
Don't hate the hacker, hate the code - Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 2:23 PM -
"Introduction
In this article I tried to cover all the topics from .NET Reflection with examples. I have stated with definition of .NET Reflection and its road map, list of mostly used classes the System.Reflection namespace provides and importance of Type class in .net Reflection. you will also learn how to get the type information using different ways. Use of properties and methods of Type class in .NET Reflection with examples are interesting in this article. You will also see advance Reflection topic like dynamically loading an assembly and late binding end of this article."
Reference: http://www.codeproject.com/KB/dotnet/Reflection.aspx (Reflection in .NET)
My Blog - MSDN Complement By Providing Visual C# Walkthroughs and Sample Codes - Founded In February 24, 2010- Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 3:27 PM -
Also see a real world example of Reflection and Expressions combined here. It's part of a framework for providing a fluent alternative for the Assert.IsXXX and Assert.AreXXXX methods you typically use in unit tests.
- Proposed as answer by DennisDoomen Friday, April 9, 2010 6:20 PM
- Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 4:24 PM -
- Marked as answer by Harry Zhu Monday, April 12, 2010 2:49 AM
Tuesday, April 6, 2010 9:36 PM