TypeReference type = _method.DeclaringType;
ByReferenceType byRef = new ByReferenceType(type);
Easy as pie.
Question
What is the equivalent function of Type.MakeByRefType()
in Mono.Cecil ?
For example:
Type xArgTypeDef;
xArgTypeDef = _method.DeclaringType;
xArgType.MakeByRefType()
Solution
TypeReference type = _method.DeclaringType;
ByReferenceType byRef = new ByReferenceType(type);
Easy as pie.