Objective
There are two reasons to write this essay on C # Reflection:
The first one is that the website you develop needs to use
The second is not to see this aspect of the relatively good article.
So make up your mind to write an article, not much nonsense to start to get to the point.
Pre-preparation
Create a new console application in VS2012 (my name is Reflectionstudy), this project is based on. NET 4.0. Then we open the Program.cs file and write our own class in program as follows:
The code is as follows:
public class Refclass
{
private int _test3;
private int _test1 {get; set;}
protected int Test2 {get; set;}
public int Test3 {get; set;}
public void Show ()
{
}
}
In addition to the Declaration,
Running GuestArticles are original, reproduced please link to the form of the address of this article
Easy-to-understand C # reflection tutorial
This address: http://www.paobuke.com/develop/c-develop/pbk23151.html
Related content C # implement file upload and multi-file upload capabilities C # Use Windows services to send messages C # using read-write locks three lines of code to easily solve problems with multithreading concurrency C # design mode series Tutorial-command mode
C # Simple Mail bulk generic class C # Implementation of multi-threaded operations based on Delegates C # implements identification of verification code on the image The example analysis of out reserved word usages in C #
Easy-to-understand C # reflection tutorial