In WPF / .Net, both System.Windows.Windowand System.Windows.Forms.Formhave the method .ShowDialog.
The difference is that the version Windows.Windowreturns a nullable bool ( bool?or Nullable<bool>), and the version Forms.Formreturns a straight line bool.
I have not seen the nullable bool ever be null, and cannot find a case where it will be in the MSDN documentation.
Can anyone explain why it Windows.Window.ShowDialogreturns NULL? Should I check this out? What does it mean if I see null?
source
share