Beispiel #1
0
 public void Accept(PartVisitor v)
 {
     v.Visit(this);
     foreach (var part in parts)
     {
         part.Accept(v);
     }
 }
Beispiel #2
0
 public void Accept(PartVisitor visitor)
 {
     try
     {
         visitor.GetType().GetMethod("Visit", new Type[] { this.GetType() })
             .Invoke(visitor, new object[] { this });
     }
     catch (System.Reflection.TargetInvocationException ex)
     {
         throw ex.InnerException;
     }
 }
Beispiel #3
0
 public void Accept(PartVisitor visitor)
 {
     try
     {
         visitor.GetType().GetMethod("Visit", new Type[] { this.GetType() })
         .Invoke(visitor, new object[] { this });
     }
     catch (System.Reflection.TargetInvocationException ex)
     {
         throw ex.InnerException;
     }
 }
Beispiel #4
0
 public void Accept(PartVisitor v)
 {
     v.Visit(this);
 }