Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Memory NuGet package does not offer ByRefLike Type extension property in full .Net #27775

Closed
bergmeister opened this issue Oct 30, 2018 · 1 comment

Comments

@bergmeister
Copy link

The System.Memory NuGet package is also compatible with full .Net but on full .Net the IsByRefLike property on System.Type is not available, thus making usage of Span<T> hard in full .Net
Can we add an extension method for full .Net or is there a workaround?

@jkotas
Copy link
Member

jkotas commented Nov 1, 2018

The workaround is to check for presence of IsByRefLikeAttribute. The first class support for byref-like types is present in .NET Core only.

@jkotas jkotas closed this as completed Nov 1, 2018
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 3.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants