--
--
mono-cecil
On Jan 6, 2012, at 5:40 PM, Vidisha Ghosh wrote:
> The reason I am baffled because the IsValueType returns false for a struct, when I check for "parameterReference.ParameterType.IsValueType".
> Am I doing something wrong here?
This looks weird. Can you send me an assembly which reproduces this ?
As a workaround, you can call .Resolve on the TypeReference to get a TypeDefinition that will have the proper ValueTypeness.
Jb
--
--
mono-cecil
Then no, it's not a problem.
The ParameterType will be a ByReferenceType, whose ElementType will be the original Value Type, with .IsValueType returning true.