This project is read-only.

Deleting methods

Topics: Metadata Model
Dec 24, 2009 at 7:26 AM

Hi Herman,

What is the proper way to remove a method definition? It seems that this does not fit really into the Mutator scenarios. I've tried to mutate the List<IMethodDefinition> or have the Visit(MethodDefinition) return null to no avail.

Happy holidays, Peli.

Dec 26, 2009 at 10:47 PM

Ok, mutating the TypeDefinition instance on Visit(TypeDefinition aaa) worked. I also had to patch the PropertyDefinition instances referencing that method (since it was a setter).