我正在使用ReSharper(旧版本),当我使用PropertyInfo.DeclaringType它时它常常警告我null.
PropertyInfo.DeclaringType
null
在第一眼和第二眼看来,这对我没有意义.这是真的,还是ReSharper有点愚蠢,并没有注意到它是一个PropertyInfo,而不是一般MemberInfo?
PropertyInfo
MemberInfo
c# reflection resharper
c# ×1
reflection ×1
resharper ×1