Skip to content

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

Merged
RunDevelopment merged 1 commit into
PrismJS:masterfrom
RunDevelopment:csharp-9.0-improvements
Jul 15, 2021
Merged

RunDevelopment merged 1 commit into
PrismJS:masterfrom
RunDevelopment:csharp-9.0-improvements

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

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.

@github-actions

Copy link
Copy Markdown

JS File Size Changes (gzipped)

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

Details
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 JaKXz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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
@RunDevelopment
RunDevelopment deleted the csharp-9.0-improvements branch July 15, 2021 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants