Suggestion: If and while etc. clauses should accept bool? in C#
At TrackingCam app (http://TrackingCam.codeplex.com) I have the following WPF code, where cbTrackingPresenter is a CheckBox control defined in my MainWindow’s XAML: private void cbTrackingPresenter_Checked(object sender, RoutedEventArgs e) { if (cbTrackingPresenter.IsChecked == true) StartTrackingPresenter(); else StopTrackingPresenter(); } Note the (redundant in my opinion) == true pattern used there. If the == true […]