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

Support by-ref types #894

Closed
sharwell opened this issue Oct 2, 2017 · 1 comment
Closed

Support by-ref types #894

sharwell opened this issue Oct 2, 2017 · 1 comment

Comments

@sharwell
Copy link
Contributor

sharwell commented Oct 2, 2017

The new ref struct feature in C# 7.2 results in several attributes applying to the compiled code. ILSpy should be updated to recognize these attributes and decompile the code to a ref struct instead.

As seen in dotnet/roslyn#22453, these attributes are:

  • IsByRefLikeAttribute (applies for all ref struct)
  • IsReadOnlyAttribute (applies for readonly ref struct)
  • ObsoleteAttribute (emitted with the specific message hard-coded)

Let me know if you have any questions about this 😄

@siegfriedpammer siegfriedpammer added this to the 3.1 milestone Nov 27, 2017
siegfriedpammer added a commit that referenced this issue Mar 4, 2018
…ts to ref and readonly modifiers, respectively. Remove ObsoleteAttribute.
@siegfriedpammer siegfriedpammer removed this from the 3.1 milestone Jun 10, 2018
@siegfriedpammer
Copy link
Member

Closing this, because support for the attributes was added long ago. #829 will be updated accordingly as soon as we've achieved test coverage and support for most use-cases.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants