Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

.NETNative CoreLib Reflection Bringup: Type and TypeInfo - #1700

Merged
1 commit merged into
nmirrorfrom
unknown repository
Aug 22, 2016
Merged

1 commit merged into
nmirrorfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 22, 2016

Copy link
Copy Markdown

Restored Type/TypeInfo Reflection surface
area in Project N's S.P.Corelib.dll
to match the bringup in CoreClr
and get it suitable for a N targeting
pack for corefx to consume.

Stuff still do to:

TypeDelegator: blocked on Type/TypeInfo.
Actually, this probably could live in
the System.Runtime facade, not corelib.
No one uses it inside corelib.

AssemblyName: Just didn't get to this -
will do in future PR.

operator==: They need to be done together
(once Type/TypeInfo is done) to keep MemberInfo:==
from recursing infinitely.

Most of the new apis throw NotImplemented,
but everything that worked in N before
still works.

Things that might look strange:

  • I made McgFakeMetadataType derive from
    ExtensibleTypeInfo, as that way, I don't have to
    maintain ExtensibleType anymore.
  • I implemented TypeInfo.IsAssignableFrom(Type)
    so EventInfo, et.al. could call it without
    the GetTypeInfo() call.

Restored Type/TypeInfo Reflection surface
area in Project N's S.P.Corelib.dll
to match the bringup in CoreClr
and get it suitable for a N targeting
pack for corefx to consume.

Stuff still do to:

  TypeDelegator: blocked on Type/TypeInfo.
    Actually, this probably could live in
    the System.Runtime facade, not corelib.
    No one uses it inside corelib.

  AssemblyName: Just didn't get to this -
    will do in future PR.

  operator==: They need to be done together
    (once Type/TypeInfo is done) to keep MemberInfo:==
    from recursing infinitely.

Most of the new apis throw NotImplemented,
but everything that worked in N before
still works.

Things that might look strange:

- I made McgFakeMetadataType derive from
  ExtensibleTypeInfo, as that way, I don't have to
  maintain ExtensibleType anymore.

- I implemented TypeInfo.IsAssignableFrom(Type)
  so EventInfo, et.al. could call it without
  the GetTypeInfo() call.
@ghost
ghost merged commit 36af2e1 into dotnet:nmirror Aug 22, 2016
@ghost
ghost deleted the type branch August 22, 2016 23:20
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant