Hey, On 1/19/08, hufman <[EMAIL PROTECTED]> wrote: > when looking at Cecil source code i see that TypeSpecification fields > can't be set so how can i do that?
A type specification is a type that is constructed from a TypeReference. Such types are for instance ArrayType, GenericInstanceType, PointerType, and some other. If one looks at the code of TypeSpecification, one could notice that the original TypeReference is stored in the ElementType property of the TypeSpecification. Thing is that you can for instance, have an ArrayType of a GenericInstanceType of a TypeReference. The easiest way is to call GetOriginalType() on the TypeSpecification, and change the namespace of this original type. -- Jb Evain <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
