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

Plug System.Type.IsByRefLike property #2998

Open
Guillermo-Santos opened this issue Apr 10, 2024 · 0 comments
Open

Plug System.Type.IsByRefLike property #2998

Guillermo-Santos opened this issue Apr 10, 2024 · 0 comments

Comments

@Guillermo-Santos
Copy link
Contributor

What is the usecase for this plug

With the PR #2997 the System.Activator.CreateInstance are plugged to Cosmos, the thing is that ref struct should not be supported by these methods and a NotSupportedException should be throw, but since this property is missing, we do not have any way to check if the type we are working with is a ref struct at runtime.

** Complexity of plug **

Adding a new property to the Vtable and modifying IL2CPU so that said value is set.

Describe alternatives you've considered

Are there workarounds for this plug?
As of my knowledge, there is no workaround.

Additional context

Add any other context about the plug request here.
May be useful for other operations too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants