Bloqueado Observer Pattern in C#

  • quarta-feira, 15 de agosto de 2012 02:38
     
     

    Hi,

    I have started reading Head First Design Patterns. The language used in the book is Java.

    I am now in the Observer pattern chapter, and I am now trying to implement it in C#. I read that we can use IObservable and IObserver interfaces but when I try to use the example in MSDN, I get the following errors:

    Error 3 The type or namespace name 'IObserver' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\xxx\Local Settings\Application Data\Temporary Projects\WeatherStation\Program.cs 48 37 WeatherStation

    Error 5 The type or namespace name 'IObservable' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\xxx\Local Settings\Application Data\Temporary Projects\WeatherStation\Program.cs 61 39 WeatherStation


    I am using Visual Studio 2005

Todas as Respostas