Skip to content

Invert Event Handler

Toggle an event subscription between += and -=

This feature is available in MFractor Professional

Introduction

The Invert Event Handler code action allows you to toggle an event subscription between a += to bind the event and -= to unbind the event.

This code action is useful as you can quickly invert an event subscription to generate either the binding or unbinding code.

Using the Code Action

This code action appears in quick actions menu when the cursor is placed on the += or -= operator within an event subscription statement.

Changing to a event binding statement Invoking the Invert Event Handler code action to bind an event subscription

Changing to a event unbinding statement Invoking the Invert Event Handler code action to unbind an event subscription

Comments