using System; using System.Reflection; public class Test { public int a{get{return 1;} } public int b{get{return 2;} } } public class App { static void Main() { Test t= new Test(); foreach(PropertyInfo p in t.GetType().GetProperties() ) Console.WriteLine(p.Name); } };