Does method: DynamicDependency preserve primary constructor's? #118734
Answered
by
teo-tsirpanis
Tyme-Bleyaert
asked this question in
Q&A
-
I wonder if |
Beta Was this translation helpful? Give feedback.
Answered by
teo-tsirpanis
Aug 15, 2025
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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
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.