Equivalent function in Mono.cecil

122 Views Asked by At

What is the equivalent function of Type.MakeByRefType() in Mono.Cecil ?

For example:

Type xArgTypeDef;
xArgTypeDef = _method.DeclaringType;
xArgType.MakeByRefType()
1

There are 1 best solutions below

0
On BEST ANSWER
TypeReference type = _method.DeclaringType;
ByReferenceType byRef = new ByReferenceType(type);

Easy as pie.