If you maintain your own assembly resolver, you can control this. That's also 
what the linker is doing to use Cecil objects as keys of dictionary.

Jb

> On 17 Mar 2014, at 13:27, Yves Goergen <[email protected]> wrote:
> 
> Ah okay. Can I rely on that every instance only exists once? Like when I call 
> TypeReference.Resolve, will I get the same TypeDefinition I get from the 
> Module itself? Then I could just use these objects as dictionary keys. If 
> not, what would be a suitable key to get from each object?
> 
> 
> Am Montag, 17. März 2014 03:23:46 UTC+1 schrieb Jb Evain:
>> 
>> Yeah it's been removed in 0.9, as it was significantly increasing the 
>> size of everything that was annotable. You can very easily implement 
>> your own annotation system, see how the mono linker is doing it for 
>> instance (mono/mcs/tools/linker). 
>> 
>> On Sun, Mar 16, 2014 at 12:16 PM, Yves Goergen <[email protected]> wrote: 
>> > There used to be the IAnnotationProvider interface for many classes in 
>> > Cecil. Has it been removed? I can't find it in the code and Github won't 
>> > let 
>> > me search in commit messages or changes, or it doesn't find it. 
>> > 
>> > -- 
>> > -- 
>> > -- 
>> > mono-cecil 
>> > --- 
>> > You received this message because you are subscribed to the Google Groups 
>> > "mono-cecil" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send an 
>> > email to [email protected]. 
>> > For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> -- 
> --
> mono-cecil
> --- 
> You received this message because you are subscribed to the Google Groups 
> "mono-cecil" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to