Beispiel #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);
     }
 }
Beispiel #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));
 }
 public TagBuilder CreateInitial(AccessorDef accessorDef)
 {
     return(_matches(accessorDef) ? _builderCreator(accessorDef) : null);
 }
Beispiel #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);
 }