Skip to content

Cecil 0.11

Compare
Choose a tag to compare
@jbevain jbevain released this 30 Aug 03:51
· 100 commits to master since this release

Cecil 0.11 now ships for .NET 4.0 and .NET Standard 2.0.

⚠️ There's one breaking API change between 0.10 and 0.11 that is easy to address. C# 8 uses custom attributes on the GenericParamConstraint metadata table. Cecil introduces 0.11 a new type GenericParameterConstraint to represent that relationship.

If previously you had code that looked like:

foreach (var type in genericParameter.Constraints)
{
    // ...
}

You need to write:

foreach (var constraint in genericParameter.Constraints)
{
    var type = constraint.ConstraintType;
    // ...
}

This releases closes:

Contributors: