Type t = typeof(classA); t.GetProperty("Aa").GetValue(b, null); System.Reflection.MemberInfo[] info = t.GetProperties(); foreach (System.Reflection.MemberInfo i in info) { a += i.Name + " "; } COMMON.Message.Show(this, a);
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/sntyy/archive/2008/06/12/2539453.aspx