Hello friends,
What is reflection in c#? What does it do?
Best to give some examples.
Thanks.
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.
Abhay ShankerPosted Mar 5, 2014, 11:42 PM
http://www.dotnetperls.com/reflection
http://www.codeproject.com/Articles/17269/Reflection-in-C-Tutorial
http://www.csharp-examples.net/reflection-examples/
Ken HPosted Mar 5, 2014, 8:17 PM
using System;
Abhishek JaiswalPosted Mar 5, 2014, 3:09 PM
go through this link to undetstand this concept better, with example:
http://www.tutorialspoint.com/csharp/csharp_reflection.htm
:) :)
Nhlanhla A W MkhizePosted Mar 5, 2014, 11:31 AM
Here's a simple example of reflection using the static method GetType - inherited by all types from the Object base class - to obtain the type of a variable: