public override decimal Accept(IItemVisitor visitor) => Math.Round(visitor.Visit(this), 2);
Exemple #2
0
 //public override string GetView(IViewer viewer)
 //{
 //    return viewer.View(this);
 //}
 public override string AcceptViewVisitor(IItemVisitor visitor)
 {
     return(visitor.Visit(this));
 }
 public virtual void Accept(IItemVisitor visitor) => visitor.Visit((dynamic)this);
Exemple #4
0
 //public virtual string GetView(IViewer viewer)
 //{
 //    return "base";
 //}
 public virtual string AcceptViewVisitor(IItemVisitor visitor)
 {
     return(visitor.Visit(this));
 }