public void ModifyForAttribute <T>(Action <HtmlTag, T> modification) where T : Attribute { EachPartialTagModifier modifier = (request, tag, index, count) => request.Accessor.ForAttribute <T>(att => modification(tag, att)); If(def => true).Modify(modifier); }
public void Modify(EachPartialTagModifier modifier) { var lambdaModifier = new PartialLambdaElementModifier(_matches, def => modifier); _factory.AddModifier(lambdaModifier); }
public void Modify(Action <HtmlTag> action) { EachPartialTagModifier modifier = (request, tag, index, count) => action(tag); Modify(modifier); }