But I realised there are a lot of Visitors inside Cecil... Which do I use if I want to accomplish sth like http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc.isv/reference/api/org/eclipse/cdt/core/dom/ast/ASTVisitor.html in eclipse?
If really there is no visitor pattern suitable for me... Would implementing my own visitor without any existing visitor to extend be difficult? -------------------------------------------------- From: "Jb Evain" <[email protected]> Sent: Sunday, October 04, 2009 11:25 PM To: <[email protected]> Subject: [mono-cecil] Re: What are the following constructs in Mono.Cecil referring to in C#? > > Hey, > > On 10/4/09, Wee Li Yen <[email protected]> wrote: >> Can someone explain what are these referring to in Mono.Cecil? >> TypeReference, ExternType, Override, NestedType, PInvokeInfo, >> SecurityDeclaration and CustomAttribute and MarshalSpec >> Best if can illustrate with examples. > > I suggest you have a look at the ECMA-335 document. Cecil is basically > mapping the metadata layout that is decribed is the document into an > objet model. > >> What is TerminateModuleDefinition doing in BaseReflectionVisitor? What is >> the use and how to call it? > > The visitor pattern implemented in Cecil is kind of broken. I strongly > suggest you avoid using it, and implement your own visit mechanism. In > this particular case, it's just a method called after a module > definition has been completely visited. > > -- > Jb Evain <[email protected]> > > > > --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
