Mega Code Archive
Throw Handled Exception
//File:Window.xaml.cs
using System;
using System.Windows;
using System.ComponentModel;
using System.Windows.Controls;
namespace SilverlightApplication3
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void btnThrowHandledException_Click(object sender, RoutedEventArgs e)
{
try
{
throw new NotImplementedException();
}
catch (NotImplementedException ex)
{
Console.WriteLine(ex.Message);
}
}
}
}