public void GetPros()
{
UserInfo userInfo = new UserInfo();
userInfo.ID = 1;
userInfo.Name = "jay";
foreach (System.Reflection.PropertyInfo p in userInfo.GetType().GetProperties())
{
Console.WriteLine("Name:{0} Value:{1}", p.Name, p.GetValue(userInfo));
}
}
