Esempio n. 1
0
 public void Accept(IVisitorBase visitor)
 {
     foreach (var part in _parts)
     {
         part.Accept(visitor);
     }
 }
Esempio n. 2
0
 public void Accept(IVisitorBase visitor)
 {
     foreach (var part in this.parts)
     {
         part.Accept(visitor);
     }
 }
Esempio n. 3
0
        public virtual void Accept(IVisitorBase <TVisitable> visitor)
        {
            /*This disgusting casting to dynamics is necessary in order to force the C# compiler not to resolve the overload at compile time
             * Without this, we'd have to override Accept for every child of TreeBase, which would be a horrible violation of DRY
             * Empirical testing revealed that both casts to dynamics are necessary*/
            dynamic visitorDynamic = visitor as dynamic;

            visitorDynamic.Visit(this as dynamic);
        }
Esempio n. 4
0
 public void Accept(IVisitorBase visitor)
 {
     visitor.Visit(this);
 }
Esempio n. 5
0
 public void Accept(IVisitorBase visitor)
 {
     visitor.Visit(this);
 }
Esempio n. 6
0
 void IElementBase.Accept(IVisitorBase visitor)
 {
     visitor.Visit(this);
 }
Esempio n. 7
0
 void IElementBase.Accept(IVisitorBase visitor)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 8
0
 void IElementBase.Accept(IVisitorBase visitor)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 9
0
 public void Accept(IVisitorBase <IMockVisitable> visitor)
 {
     throw new NotImplementedException();
 }