Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Add RuntimeHelpers.IsReferenceOrContainsReferences<T>() #2736

Merged
merged 1 commit into from
Feb 13, 2017
Merged

Add RuntimeHelpers.IsReferenceOrContainsReferences<T>() #2736

merged 1 commit into from
Feb 13, 2017

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Feb 12, 2017

Prep for Span and work towards dotnet/corefx#14047

TypeDesc elementType = method.Instantiation[0];

// Fallback to non-intrinsic implementation for universal generics
if (elementType.IsCanonicalSubtype(CanonicalFormKind.Universal))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MichalStrehovsky Is this the right condition to use here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, this looks good!

@jkotas
Copy link
Member Author

jkotas commented Feb 12, 2017

I am also going to open bug to add the matching expansion in NUTC once it goes in.

@jkotas jkotas merged commit cf2351e into dotnet:master Feb 13, 2017
@jkotas jkotas deleted the IsReferenceOrContainsReferences branch February 13, 2017 22:05
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