标签:str void write set stat reac src 图片 ima
public class Class11
{
public void test1()
{
c1 model = new c1();
model.name = "name1";
Type t = model.GetType();
PropertyInfo[] pArray = t.GetProperties();
Array.ForEach<PropertyInfo>(pArray, p =>
{
Console.WriteLine(p.Name);
});
}
public class c1
{
public static string StrIds = "12333";//这个字段 反射时不会遍历到
public string name { get; set; }
}
}
标签:str void write set stat reac src 图片 ima
原文地址:https://www.cnblogs.com/guxingy/p/12743581.html