We're updating the issue view to help you get more done. 

Type.GetConstructor (Type[]) and CustomType.GetConstructor (Type[]) don't work if one of the parameter types is a CustomType

Description

In .NET 4.5, the DefaultBinder class throws an exception if any of the passed types is not a RuntimeType (and it uses the UnderlyingSystemType to get the RuntimeType). Therefore, all code using the DefaultBinder, and that means all Type.GetXXX methods that filter members by signature, will no longer work for custom types.

Ideas:

  • Generate transient UnderlyingSystemTypes for CustomTypes that have the right base classes and interfaces. (Performance?)

  • Do not support the member getters any longer.

Check TODO comments.

Assignee

Unassigned

Reporter

Fabian Schmied

Labels

None

Components

Fix versions

Priority

Normal
Configure