-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Unify type instantiations in reflection emit #81518
Conversation
Tagging subscribers to this area: @dotnet/area-system-reflection Issue DetailsThis change is suggested during code review of #78544
|
On mono, the layout of these types is visible to the runtime, so it would be better to make them a partial type, and create .Mono.cs versions of them. This is how runtime specific types are usually handled. |
...libraries/System.Private.CoreLib/src/System/Reflection/Emit/XyzOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
src/mono/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
Outdated
Show resolved
Hide resolved
59e761b
to
9c298c2
Compare
...braries/System.Private.CoreLib/src/System/Reflection/Emit/FieldOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
...braries/System.Private.CoreLib/src/System/Reflection/Emit/FieldOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
9c298c2
to
ebb30d3
Compare
ebb30d3
to
e83db73
Compare
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
...raries/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
6b0e129
to
4b93524
Compare
src/mono/System.Private.CoreLib/src/System/Reflection/Emit/DerivedTypes.Mono.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/SymbolType.cs
Show resolved
Hide resolved
...raries/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
...raries/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInstantiation.cs
Show resolved
Hide resolved
...raries/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
...s/System.Private.CoreLib/src/System/Reflection/Emit/ConstructorOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
...braries/System.Private.CoreLib/src/System/Reflection/Emit/FieldOnTypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBase.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilderInstantiation.cs
Outdated
Show resolved
Hide resolved
src/mono/System.Private.CoreLib/src/System/Reflection/Emit/RuntimeTypeBuilder.Mono.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/SymbolType.cs
Outdated
Show resolved
Hide resolved
This reverts commit 039b9f2.
442e38b
to
26d3168
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CoreCLR changes LGTM. @vargaz @lambdageek Could you please review the Mono changes?
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/SymbolType.cs
Show resolved
Hide resolved
Mono changes look ok. |
98ea02a
to
58b9331
Compare
This change is suggested during code review of #78544