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

Add support for C# 9 init-only setters #257

Merged
merged 3 commits into from Dec 30, 2022

Conversation

stakx
Copy link
Collaborator

@stakx stakx commented Dec 30, 2022

Closes #250, also goes towards completing #207.

Not sure if this is the best way to get this done (probably not!), but for now it appears to work.

@stakx stakx merged commit b2df393 into PublicApiGenerator:master Dec 30, 2022
@stakx stakx deleted the init-only-setters branch December 30, 2022 19:07
@@ -24,6 +24,7 @@ internal static class CodeNormalizer
internal const string EventRemovePublicMarker = "removepublic";
internal const string MethodModifierMarkerTemplate = "_{0}_3C0D97CD952D40AA8B6E1ECB98FFC79F_";
internal const string PropertyModifierMarkerTemplate = "_{0}_5DB9F56043FF464997155541DA321AD4_";
internal const string PropertyInitOnlySetterTemplate = "_{0}_156783F107B3427090B5486DC33EE6A9_";
Copy link
Member

Choose a reason for hiding this comment

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

Hahah, all my hacks are still alive

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

Successfully merging this pull request may close these issues.

Init-only setters should be marked as init;
2 participants