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