private static void WriteRemoveEvent(LanguageWriter w, IRemoveEventStatement state)
 {
     ExpressionWriter.WriteEventReference(w, state.Event);
     w.Write(" -= ");
     ExpressionWriter.WriteExpression(w, state.Listener, false);
     w.Write(";");
     w.WriteLine();
 }
 public virtual void VisitRemoveEventStatement(IRemoveEventStatement value)
 {
     VisitExpression(value.Event);
     VisitExpression(value.Listener);
 }
 private void WriteRemoveEventStatement(IRemoveEventStatement statement, IFormatter formatter)
 {
     this.WriteStatementSeparator(formatter);
     this.WriteEventReferenceExpression(statement.Event, formatter);
     formatter.Write(" -= ");
     this.WriteExpression(statement.Listener, formatter);
     formatter.Write(";");
     formatter.WriteLine();
 }
Exemple #4
0
 public override void VisitRemoveEventStatement(IRemoveEventStatement value)
 {
     WriteUnsupported(value);
 }
 public virtual void VisitRemoveEventStatement(IRemoveEventStatement value)
 {
     this.VisitExpression(value.Event);
     this.VisitExpression(value.Listener);
 }
 public virtual IStatement TransformRemoveEventStatement(IRemoveEventStatement value)
 {
     value.Event = (IEventReferenceExpression)this.TransformExpression(value.Event);
     value.Listener = this.TransformExpression(value.Listener);
     return value;
 }