public class Tester
{
public int? A
{
get;
set;
}
public int? B
{
get;
set;
}
public static void Main()
{
Tester t = new Tester();
Type tp = typeof(Tester);
PropertyInfo[] pinfo = tp.GetProperties();
foreach (PropertyInfo info in pinfo)
{
Console.WriteLine(info.Name);
}
Console.ReadLine();
}
}