> Then it only works for fields and properties defined in the current
> module. Cecil tries hard to not load another module unless it
> explicitly has too. And that's the case here, we have a perfectly
> valid representation, a bit cumbersome for boxed values admittedly,
> but workable.

OK, I understand.

One last question though. In the Mono.Cecil source code, you often do
things like “type.etype == ElementType.Object” to determine whether
something is actually the object type. But “etype” is internal, so I
can’t do that in my own code. Thus, what is your recommended way for
me to determine whether my CustomAttributeArgument represents a boxed
value? More generally, what is the recommended way to determine
whether a given TypeReference is actually the object type?

Thanks again :)

-- 
--
mono-cecil

Reply via email to