KEMBAR78
Type.GetType($”{typeName}, {assemblyName}”) should load assemblies in the caller context · Issue #11895 · dotnet/runtime · GitHub
Skip to content

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

@jkotas

Description

@jkotas

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions