It is a visitor pattern. It is being used for processing tree-like 
structure. It is hard to grasp at first look. Basically I am using it for 
reaching all typerefences to fix . Dispatcher taverses all tree nodes, when 
it find a node that contains typereference, it is calling my visitor method 
in ReferenceFixUp class which is for renaming the passed typerefence if 
necessary. 

MyAssemblyResolver implementation is in the gist. It is just for sharing 
assemblies. I am not sure if i am doing in it right way either. 

Their visitor implementation is for their own scenario which, I think, is 
completely re-referencing types to ones in a "support" assembly instead of 
just renaming types. I am not sure how they do that. They seem like using 
cecil's resolving mechanism. And they are fixing references in just one 
"targetassembly". In my scenario it has to fix references in all modules 
included ones that own renamed types.

20 Mart 2014 Perşembe 00:03:11 UTC+2 tarihinde Yves Goergen yazdı:
>
> Am Mittwoch, 19. März 2014 16:25:39 UTC+1 schrieb Serguzest:
>>
>> I am using this dispatcher to reaching all referencing nodes : 
>> https://github.com/Unity-Technologies/ReferenceRewriter/blob/master/ReferenceDispatcher.cs
>>
>
> I'm also interested in this topic, but it's hard to follow what that code 
> does. It seems to be jumping around in circles. Do you have any idea what 
> it's actually good for, and how did you find it?
>  
>
>> So I implemented my own : 
>>  
>> https://gist.github.com/Serguzest/47ca95bf1766d8fbeef4<https://www.google.com/url?q=https%3A%2F%2Fgist.github.com%2FSerguzest%2F47ca95bf1766d8fbeef4&sa=D&sntz=1&usg=AFQjCNHhB6LjpiuLKwul9cRmR_GGgw4aWA>
>>
>
> What does this differently?
>
> Also, I'd be interested in your MyAssemblyResolver implementation, that 
> seems to serve a purpose that I also need but do not know yet. Is this any 
> special implementation that does some special handling?
>

-- 
-- 
--
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