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

C#: Added with keyword & improved record support #2993



Copy link

@RunDevelopment RunDevelopment commented Jul 11, 2021

As promised in #2991, here are some improvements for C# records.

  • Added support for the with keyword.
  • Type lists for records (inheritance) are now supported.
  • Added support for the new() generic constraint. I simply forgot to add it. new() was added in C# 7.3, I believe.
Copy link

@github-actions github-actions bot commented Jul 11, 2021

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +69 B (+2.9%).

file master pull size diff % diff
components/prism-csharp.min.js 2.37 KB 2.44 KB +69 B +2.9%

Generated by 🚫 dangerJS against 04e9290


JaKXz approved these changes Jul 15, 2021
Copy link

@JaKXz JaKXz left a comment

I haven't worked with C# in a few years, so take with a grain of salt, but this makes sense to me 👍🏽


@RunDevelopment RunDevelopment merged commit fdd291c into PrismJS:master Jul 15, 2021
11 checks passed
@RunDevelopment RunDevelopment deleted the csharp-9.0-improvements branch Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants