Got it, just forgot the cast:

if (paraType.IsByReference)
    paraType = ((ByReferenceType)paraType).ElementType; // removes ref

Thanks

Jan

-- 
--
mono-cecil

Reply via email to