c# 反射查找属性BindingFlags.IgnoreCase无效的坑
var proinfo = type.GetProperty("id",BindingFlags.IgnoreCase)
返回Null
正确用法:
var proinfo = type.GetProperty("id", BindingFlags.Public | BindingFlags.Instance| BindingFlags.IgnoreCase);
必须结合BindingFlags.Public | BindingFlags.Instance|一起使用,否则会返回null