Skip to content

Commit 8b5568e

Browse files
committed
Minor correction
1 parent 86de735 commit 8b5568e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WpfMemoryLeakHunting/SampleWithLeaks/CustomerControl.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public IEnumerable<Customer> Customers
4444
public void OnImportsSatisfied()
4545
{
4646
// Connect to click event in main menu to "print" this item.
47-
this.PrintMenuItem.Click += (s, ea) => Debug.WriteLine("Printing {0} ...", this.ToString());
47+
this.PrintMenuItem.Click += (s, ea) => Debug.WriteLine("Printing {0} ...", this);
4848
}
4949

5050
// Implementation of IDisposable

WpfMemoryLeakHunting/SampleWithoutLeaks/CustomerControl.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void OnImportsSatisfied()
4848

4949
private void Print(object sender, RoutedEventArgs ea)
5050
{
51-
Debug.WriteLine("Printing {0} ...", this.ToString());
51+
Debug.WriteLine("Printing {0} ...", this);
5252
}
5353

5454
// Implementation of IDisposable

0 commit comments

Comments
 (0)