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

Merge changes from TFS - #1543

Merged
MichalStrehovsky merged 1 commit into
dotnet:nmirrorfrom
dotnet-bot:from-tfs
Jul 19, 2016
Merged

MichalStrehovsky merged 1 commit into
dotnet:nmirrorfrom
dotnet-bot:from-tfs

Conversation

@dotnet-bot

Copy link
Copy Markdown
Collaborator

No description provided.

https://github.com/dotnet/corefx/issues/9805

Remove RuntimeType type from S.P.CoreLib. It is now
internal to S.P.R.Core.

Tasks which used to require RuntimeType:

- Checking if a type is implemented by the framework

  Now, call the extension method Type.IsRuntimeImplemented()
  (which simply checks for a private interface IRuntimeImplementedTYpe.)

- Setting the RuntimeType's DebugName.

  We can live without it for the few weeks between now
  and the time Type and TypeInfo merge into the same object.
  RuntimeTypeTemporary holds a reference to its TypeInfo
  which maintains its own DebugName anyway.

- Getting the typehandle w/out triggering an MME

  Introduced GetTypeHandleIfAvailable callback to S.P.R.Core

- Array.CreateInstance() replacing an exception
  if the passed in element type is an open type.

  This code path was effectively unreachable anyway since
  MakeArrayType() works just fine on open types and has
  for a long time now. The following call to TypeHandle
  will throw the desired exception.

- Using a Type as a key in a ConcurrentUnifier (which
  requires the key to implement IEquatable<>)

  Introduced a TypeUnificationKey wrapper.

- An interop extension to detect if a Type can be reflected
  on.

  Moved the code to a callback to S.P.R.Core

Other changes:

- Removed obsolete/unused Corelib/R.Core interop
  methods for real now that apicompat has been silenced.

- Disabled the IL transform that injects GetTypeInfo()
  into RuntimeType since RuntimeType is no longer where
  it expects to find it (and the transform is no longer
  needed since our new RuntimeType implements it the normal
  way.)

[tfs-changeset: 1618263]
@MichalStrehovsky
MichalStrehovsky merged commit 54dba85 into dotnet:nmirror Jul 19, 2016
@dotnet-bot
dotnet-bot deleted the from-tfs branch July 19, 2016 00:39
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.

3 participants