Hi Stephen,
I'm not sure exactly, it's throwing the exception when creating a new DynamicMethod instance -
private static DynamicMethod CreateDynamicMethod(MemberInfo member, Type sourceType)
{
...
return new DynamicMethod("Set" + member.Name, null, new[] {...