Ejemplo n.º 1
0
 public virtual Expression VisitStackAlloc(StackAlloc alloc)
 {
     if (alloc == null) return null;
     alloc.ElementType = this.VisitTypeReference(alloc.ElementType);
     alloc.NumberOfElements = this.VisitExpression(alloc.NumberOfElements);
     return alloc;
 }
Ejemplo n.º 2
0
 public EventingVisitor(Action<StackAlloc> visitStackAlloc) { VisitedStackAlloc += visitStackAlloc; } public event Action<StackAlloc> VisitedStackAlloc; public override Expression VisitStackAlloc(StackAlloc alloc) { if (VisitedStackAlloc != null) VisitedStackAlloc(alloc); return base.VisitStackAlloc(alloc); }