Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SWF] Method OnClosed should pass FormClosedEventArgs type, instead of EventArgs #13282

Closed
sancheolz opened this issue Mar 4, 2019 · 0 comments · Fixed by #13283

Comments

@sancheolz
Copy link
Contributor

@sancheolz sancheolz commented Mar 4, 2019

Steps to Reproduce

  1. override From.OnClosed method like this:
protected override void OnClosed(EventArgs e)
        {
            if (((FormClosedEventArgs)e).CloseReason != CloseReason.MdiFormClosing)
               {}//do something

            base.OnClosed(e);
        }

Current Behavior

Throws NullReferenceException when cast e to FormClosedEventArgs.

Expected Behavior

Successfull cast e to FormClosedEventArgs.

On which platforms did you notice this

[ ] macOS
[x] Linux
[ ] Windows

Version Used:

Mono JIT compiler version 5.21.0 (master/d319f72d0dd Вс окт 7 12:53:58 MSK 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
Suspend: hybrid
GC: sgen (concurrent by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.