Hey Daniel,

On Mon, May 2, 2011 at 12:44 PM, Daniel Grunwald
<[email protected]> wrote:
> I think replacing types is something that belongs directly into Cecil -- so
> far, all of my projects using Cecil have required something like this, even
> if its just for determining the parameter types of a generic method call.

Or at least in Cecil.Rocks.

> The visitor pattern works quite well for this - take a look at how
> System.Linq.Expressions.ExpressionVisitor can be used for replacing nodes
> within an expression tree. And it's useful for more than just replacements.

I think it should be pretty easy to cook one by switching on the
.MetadataType in Visit, pretty much like the v2.0 ExpressionVisitor.

Jb

-- 
--
mono-cecil

Reply via email to