C#GetType().GetProperties()获取所有属性时,包括了索引器,如果排除掉索引器,BindingFlags可以筛选但不知道是哪个?
if (pi.GetIndexParameters().Length > 0) 说明这个是索引器