public EachPartialTagBuilder CreateInitial(AccessorDef accessorDef) { if (matches(accessorDef)) { return(Build); } return(null); }
public TagModifier CreateModifier(AccessorDef accessorDef) { if (!Matches(accessorDef)) { return (r, t) => { } } ; return(Build); } }
public bool Equals(AccessorDef other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Accessor, Accessor) && Equals(other.ModelType, ModelType)); }
public TagBuilder CreateInitial(AccessorDef accessorDef) { return(_matches(accessorDef) ? _builderCreator(accessorDef) : null); }
protected abstract bool matches(AccessorDef def);
public abstract bool Matches(AccessorDef def);
public TagModifier CreateModifier(AccessorDef accessorDef) { return(_matches(accessorDef) ? _modifierBuilder(accessorDef) : null); }