I have a situation where GetElementType() is returning an unexpected
value for a reference to a int[]....

specifically for a parameter:

[out] int32[]& ids

var elementType = parameter.ParameterType.GetElementType();

returns System.Int32 type reference, not System.Int32[] type
reference.

If I do:
typeof(int[]).MakeByRefType().GetElementType()

it returns System.Int32[], which is what I would expect.

Am I doing something wrong here?

Thanks.

-- 
--
mono-cecil

Reply via email to