Skip to content

System.Reflection.MetadataLoadContext doesn't support function pointer types #43791

Closed
@vargaz

Description

@vargaz

To reproduce: run the attached project
Version: master
Expected result: works
Actual result:

Unhandled exception. System.NotSupportedException: Parsing function pointer types in signatures is not supported.
   at System.Reflection.TypeLoading.Ecma.EcmaModule.GetFunctionPointerType(MethodSignature`1 signature)
   at System.Reflection.Metadata.Ecma335.SignatureDecoder`2.DecodeType(BlobReader& blobReader, Boolean allowTypeSpecifications, Int32 typeCode)
   at System.Reflection.Metadata.Ecma335.SignatureDecoder`2.DecodeMethodSignature(BlobReader& blobReader)
   at System.Reflection.TypeLoading.Ecma.EcmaMethodDecoder.SpecializeMethodSig(IRoMethodBase roMethodBase)
   at System.Reflection.TypeLoading.RoDefinitionMethod`1.ComputeMethodSig()
   at System.Reflection.TypeLoading.RoMethod.get_MethodSig()
   at System.Reflection.TypeLoading.RoMethod.get_ReturnParameter()
   at System.Reflection.TypeLoading.RoMethod.get_ReturnType()

Metadata

Metadata

Assignees

Labels

area-System.ReflectionenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions