Add motivational example to TV example

This commit is contained in:
Petrutiu Mihai
2016-06-30 11:42:20 +03:00
parent 243a824e19
commit 9ad9211adc
7 changed files with 65 additions and 1 deletions

View File

@@ -71,7 +71,6 @@ Concrete Observer -> Implementation of the observer
";
}
private static string GetLapsedLinstenerProblem()
{
return @"
@@ -80,6 +79,7 @@ Consequently, the publisher still holds a reference to the observer which preven
— including all other objects it is referring to — for as long as the publisher is alive, which could be until the end of the application.
This causes not only a memory leak, but also a performance degradation with an 'uninterested' observer receiving and acting on unwanted events";
}
private static void GoToNextStep()
{
Console.ReadKey();