Input code
public partial class RefEditForm : Form
Closed += delegate
{
_selectionTracker.NewSelection -= ChangeText;
_selectionTracker.Stop();
};
Dispatcher.Invoke(new Action(() =>
{
_refEditWindow2.Dispatcher.Invoke(new Action(() => _refEditWindow2.Activate()));
}
Erroneous output
Public Partial Class RefEditForm
Inherits Form
AddHandler ClosedEvent, Sub()
RemoveHandler _selectionTracker.NewSelection, AddressOf ChangeText
_selectionTracker.[Stop]()
End Sub
Dispatcher(New Action(Sub()
_refEditForm2(New Action(Sub() _refEditForm2.Activate()))
Expected output
Partial Class RefEditForm
Inherits Form
AddHandler Closed, Sub()
RemoveHandler _selectionTracker.NewSelection, AddressOf ChangeText
_selectionTracker.[Stop]()
End Sub
Dispatcher.Invoke(New Action(Sub()
_refEditForm2.Invoke(New Action(Sub() _refEditForm2.Activate()))
Details
Input code
Erroneous output
Expected output
Details