Example #1
0
 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);
     }
 }
Example #3
0
 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));
 }
Example #4
0
 public TagBuilder CreateInitial(AccessorDef accessorDef)
 {
     return(_matches(accessorDef) ? _builderCreator(accessorDef) : null);
 }
Example #5
0
 protected abstract bool matches(AccessorDef def);
 public abstract bool Matches(AccessorDef def);
 public TagModifier CreateModifier(AccessorDef accessorDef)
 {
     return(_matches(accessorDef) ? _modifierBuilder(accessorDef) : null);
 }