Skip to content

BlurVisitor

Greg G edited this page Dec 31, 2016 · 4 revisions

The BlurVisitor abstract class adds the ability to edit every member in an assembly.
Simply override any of its methods to edit it.

Important: A visitor must declare a parameter-less constructor.

Example

public class MeanVisitor : BlurVisitor
{
    public override int Priority => 900;

    protected override void Visit(TypeDefinition type)
    {
        type.Fields.RemoveAt(0);
    }
}