-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
doc-enhancementImprove the current contentImprove the current content
Description
The documentation says:
> This method is currently not supported. As a workaround, retrieve the <xref:System.Reflection.FieldInfo> by reflecting on the finished type and call <xref:System.Reflection.FieldInfo.SetValue%2A> to set the value of the field. |
For static init-only fields, this workaround was working in .NET Framework, however this is no longer supported in .NET Core 3.0+ (see dotnet/runtime#11571 (comment)).
So, how to initialize static init-only field of dynamic type in .NET Core 3.0+?
It would be great if the documentation will provide this hint:)
Metadata
Metadata
Assignees
Labels
doc-enhancementImprove the current contentImprove the current content