Hello,

I was a little bit surprised when I noticed that if I take a primitive
type reference and look at it's metadata type. Eg:

> typeRef.MetadataType

I'll get something like Int32, SByte, Boolean, Char ... But, if I
resolve it and do the same

> typeRef.Resolve().MetadataType

I seem to always get ValueType. It's a similar story with IsPrimitive
which seems to return true for unresolved primitive references and
false for resolved references. I assume this is a feature and not a
bug. I guess I'm just bringing this up incase someone else runs into
this and also to see if anyone knows of other differences between
reference types and their resolved counterparts that might be
surprising. Actually more generally does anyone have any tips for
things to be aware of that might be surprising with cecil?

Thanks, Keith

-- 
--
mono-cecil

Reply via email to