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

Support calling methods on parameters whose type is a constrained generic parameter without boxing.

Description

... otherwise byRef cannot be achieved (mutating methods).

Idea:
In TypeUtils.IsValidInstanceType (used in by Expression.Call) insert a special case that checks if the method is defined by a constraint of the generic parameter.
This should allow calling the method without the Expression.Convert, i.e., without boxing and therefore preserving byRef semantics.

Search for TODOs.

Assignee

Unassigned

Reporter

User known

Labels

None

Components

Fix versions

Priority

Normal
Configure