示例#1
0
        protected virtual void Write(IndentedTextWriter writer, RemoveEventHandlerStatement statement, WriteStatementOptions options)
        {
            if (statement.LeftExpression != null)
            {
                Write(writer, statement.LeftExpression);
            }

            writer.Write(" -= ");

            if (statement.RightExpression != null)
            {
                Write(writer, statement.RightExpression);
            }

            writer.WriteLine(";");
        }
示例#2
0
 public virtual void VisitRemoveEventHandlerStatement(RemoveEventHandlerStatement removeEventHandlerStatement)
 {
     VisitStatement(removeEventHandlerStatement);
     Visit(removeEventHandlerStatement.LeftExpression);
     Visit(removeEventHandlerStatement.RightExpression);
 }