I was reading the MSDN documentation for the System.Windows.Forms.Form.OnClosing() method and noticed:
CAUTION: The OnClosing method is obsolete in the .NET Framework version 2.0; use the OnFormClosing method instead.
I can find no reference as to why it had been marked as obsolete.
I figured I would ask here:
- Before I wasted hours drudging through reflector
- It would be useful to have as a reference to others
The only difference I see is that you get access to the FormClosingEventArgs, so if you don't need those (which you obviously didn't if you were using OnClosing) then is there any benefit to switching to OnFormClosing?
I understand that obsolete means that it could go away, so you should update as soon as possible, but you and I both know that obsolete in MS land means little. I want to know solid technical details as to why.