Skip to content

Partial constructor extensions #8546

Answered by jaredpar
crener asked this question in Language Ideas
Oct 28, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

I think that init methods are the most likely path forward for this. Those would be methods callable from constructors or other init methods that have the ability to set readonly members. If that were available then you could use a partial init member that the source generator could fill out.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@crener
Comment options

@crener
Comment options

@jaredpar
Comment options

@crener
Comment options

Answer selected by crener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants