Improve reflection types - add not-null properties to certain interfaces #66904
Unanswered
TahirAhmadov
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I asked this question previously about
XmlDocument
, and I have a similar suggestion now for things likeFieldInfo.DeclaringType
- that property can never be null, yet since it's inherited fromMemberInfo
, it's marked as nullable (becauseType
is also aMemberInfo
and it can have nullDeclaringType
). I think we should addpublic new Type DeclaringType { get; }
properties toFieldInfo
,MethodInfo
, etc.Beta Was this translation helpful? Give feedback.
All reactions