Skip to content
Discussion options

You must be logged in to vote

A primary constructor is a regular constructor as far as the runtime and metadata format are concerned. The C# compiler always emits primary constructors as public, so the answer to your question is yes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tyme-Bleyaert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants