Skip to content

Type.GetType($”{typeName}, {assemblyName}”) should load assemblies in the caller context #11895

Closed

Description

Type.GetType is one the several APIs that take the caller assembly as implicit hidden argument.

Another example of such API is Assembly.Load. Assembly.Load loads assemblies in the caller context, using this hidden caller argument.

Type.GetType loads assemblies in the default context today. We should change it to load assemblies in the caller context to be consistent with Assembly.Load.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions