• kingces's WebLog

    MemberInfo Identity, Comparing MemberInfos

    • 2 Comments
    The identity most users would expect MemberInfos (other than Type) to have is not what Reflection provides. So for example most folks would expect the follow program to print true instead of false: public class B { public void M() { } } public...
  • kingces's WebLog

    Never use Type.ReflectedType

    • 0 Comments
    Never use MemberInfo.ReflectedType. ReflectedType is not well defined and so logic which depends on it is also not well defined. Using ReflectedType won’t crash your system but chances are that you’ve got a bug in whatever logic is using ReflectedType...
  • kingces's WebLog

    Do not derive from System.Type

    • 0 Comments
    Do not derive from System.Type or any other types deriving from System.MemberInfo. You might infer from all those protected members on Type that we intended to have folks derive from Type and have those 3ed party Types somehow "play nice" with the rest...
  • kingces's WebLog

    Hello World!

    • 13 Comments
    I am one of the current stewards of System.Reflection. Feel free to post your reflection scenarios or Reflection related questions if you'd like direct feedback. Thanks, Chris
Page 1 of 1 (4 items)