public void Main() { try { int ? number = null; Console.WriteLine(number.ToString()); } catch (NullReferenceException) { MessageBox.Show("Null Reference Exception Caught"); } }
public void Main() { try { int ? number = null; Console.WriteLine(number.ToString()); } catch (NullReferenceException) { MessageBox.Show("Null Reference Exception Caught"); } }
Leave a Reply