i have class, with fields of double? type. with reflection i get fields
Parameters cl = new Parameters();
FieldInfo[] fi = cl.GetType().GetFields((BindingFlags.NonPublic | BindingFlags.Instance));
现在,我想要得到字段,只有双?type,gow我能得到这个类型,与fi中的字段进行比较吗?
smth类:
if(fi[0].FieldType == (double?).GetType()){...}